changeset 32:ce12475d2109

fix bug with normalized type attribute.
author casties
date Fri, 22 Jan 2016 20:41:25 +0100
parents 48bbba800c03
children 7e2e344c3b87
files importFromOpenMind/importer/ismi2model.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/importFromOpenMind/importer/ismi2model.py	Thu Jan 21 18:24:51 2016 +0100
+++ b/importFromOpenMind/importer/ismi2model.py	Fri Jan 22 20:41:25 2016 +0100
@@ -10,6 +10,7 @@
 
 # OpenMind base URL
 baseURL="http://localhost:18080/om4-ismi/jsonInterface?"
+#baseURL="http://localhost:18080/ismi-richfaces/jsonInterface?"
 
 # node types to exclude from the graph
 exclude_objects_of_type = ['DIGITALIZATION', 'REFERENCE']
@@ -151,6 +152,10 @@
     # rename if type attr exists
     if 'type' in attrs:
         attrs['type2'] = attrs['type']
+        if '_n_type' in attrs:
+            # rename normalized attribute
+            attrs['_n_type2'] = attrs['_n_type']
+            del attrs['n_type']
         
     # set type
     attrs['type'] = fixName(oc)