[importers] Assessment should always be "held by" one and only one Center
authorDimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
Mon, 22 Jul 2013 12:14:16 +0200
changeset 357 37d762ca7246
parent 356 2a4cd09f9c66
child 358 d60ca87c2f56
[importers] Assessment should always be "held by" one and only one Center
importers/localizer.py
--- a/importers/localizer.py	Sat Jul 20 18:16:30 2013 +0200
+++ b/importers/localizer.py	Mon Jul 22 12:14:16 2013 +0200
@@ -439,6 +439,7 @@
         # Genetics ############################################################
         gen_assessment = import_assessment(sid, age_for_assessment, 'genetics', study.eid)
         gen_assessment = store.create_entity('Assessment', **gen_assessment)
+        store.relate(center_eid, 'holds', gen_assessment.eid)
         store.relate(subject.eid, 'concerned_by', gen_assessment.eid)
         measure = gen_measures[subject.identifier]
         measure['platform'] = platform.eid