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

added save() method to description

parent 3cfeccc9
No related branches found
No related tags found
No related merge requests found
...@@ -214,6 +214,7 @@ pt = o.new_property_type( ...@@ -214,6 +214,7 @@ pt = o.new_property_type(
description = 'my first property', description = 'my first property',
dataType = 'VARCHAR', dataType = 'VARCHAR',
) )
pt.save()
pt_int = o.new_property_type( pt_int = o.new_property_type(
code = '$DEFAULT_OBJECT_TYPE', code = '$DEFAULT_OBJECT_TYPE',
...@@ -221,6 +222,7 @@ pt_int = o.new_property_type( ...@@ -221,6 +222,7 @@ pt_int = o.new_property_type(
dataType = 'VARCHAR', dataType = 'VARCHAR',
managedInternally = True, managedInternally = True,
) )
pt_int.save()
pt_voc = o.new_property_type( pt_voc = o.new_property_type(
code = 'MY_CONTROLLED_VOCABULARY', code = 'MY_CONTROLLED_VOCABULARY',
...@@ -229,6 +231,7 @@ pt_voc = o.new_property_type( ...@@ -229,6 +231,7 @@ pt_voc = o.new_property_type(
dataType = 'CONTROLLEDVOCABULARY', dataType = 'CONTROLLEDVOCABULARY',
vocabulary = 'STORAGE', vocabulary = 'STORAGE',
) )
pt_voc.save()
``` ```
The `dataType` attribute can contain any of these values: The `dataType` attribute can contain any of these values:
...@@ -515,6 +518,7 @@ The new name for **experiment** is **collection**. You can use boths names inter ...@@ -515,6 +518,7 @@ The new name for **experiment** is **collection**. You can use boths names inter
``` ```
exp = o.new_experiment exp = o.new_experiment
code='MY_NEW_EXPERIMENT',
type='DEFAULT_EXPERIMENT', type='DEFAULT_EXPERIMENT',
space='MY_SPACE', space='MY_SPACE',
project='YEASTS' project='YEASTS'
......
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