aboutsummaryrefslogtreecommitdiff
path: root/gn2/base
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/base')
-rw-r--r--gn2/base/trait.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/gn2/base/trait.py b/gn2/base/trait.py
index 24288ba1..8375c682 100644
--- a/gn2/base/trait.py
+++ b/gn2/base/trait.py
@@ -27,15 +27,10 @@ def create_trait(**kw):
if bool(kw.get('dataset')):
dataset = kw.get('dataset')
-
-
else:
if kw.get('dataset_name') != "Temp":
-
-
dataset = create_dataset(kw.get('dataset_name'))
else:
-
dataset = create_dataset(
dataset_name="Temp",
dataset_type="Temp",
@@ -49,9 +44,8 @@ def create_trait(**kw):
permissions = check_resource_availability(
dataset, g.user_session.user_id)
-
if permissions['data'] != "no-access":
-
+
the_trait = GeneralTrait(**dict(kw,dataset=dataset))
if the_trait.dataset.type != "Temp":
the_trait = retrieve_trait_info(
@@ -641,4 +635,4 @@ def fetch_symbols(trait_db_list):
'db_name': trait_db.split(":")[1]})
symbol_list.append(cursor.fetchone()[0])
- return "+".join(symbol_list) \ No newline at end of file
+ return "+".join(symbol_list)