Skip to content
Snippets Groups Projects
Commit a752fcda authored by Swen Vermeul's avatar Swen Vermeul
Browse files

have the dataset_type as a subfolder

parent 05f6fd1f
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,8 @@ def register_container(transaction, dataset_type, sample, properties, contained_ ...@@ -182,7 +182,8 @@ def register_container(transaction, dataset_type, sample, properties, contained_
# Create new container (a dataset of type "JUPYTER_CONTAINER") # Create new container (a dataset of type "JUPYTER_CONTAINER")
container = transaction.createNewDataSet(dataset_type) container = transaction.createNewDataSet(dataset_type)
container.setSample(sample) container.setSample(sample)
container.setRegistrator(userId) #container.setRegistrator(userId)
#print(dir(container))
else: else:
print("JUPYTER_CONTAINER already exists: " + container_name) print("JUPYTER_CONTAINER already exists: " + container_name)
...@@ -226,7 +227,8 @@ def register_dataset(transaction, dataset_type, sample, properties, ws_folder, f ...@@ -226,7 +227,8 @@ def register_dataset(transaction, dataset_type, sample, properties, ws_folder, f
# create temporary folder in incoming-dir ( openbis/servers/datastore_server/data/incoming ) # create temporary folder in incoming-dir ( openbis/servers/datastore_server/data/incoming )
threadProperties = getThreadProperties(transaction) threadProperties = getThreadProperties(transaction)
incoming_dir = os.path.join( threadProperties[u'incoming-dir'], str(time.time()) ) #incoming_dir = os.path.join( threadProperties[u'incoming-dir'], str(time.time()) )
incoming_dir = os.path.join( threadProperties[u'incoming-dir'], dataset_type )
print("incoming folder is: " + incoming_dir) print("incoming folder is: " + incoming_dir)
dss_service = ServiceProvider.getDssServiceRpcGeneric().getService() dss_service = ServiceProvider.getDssServiceRpcGeneric().getService()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment