# HG changeset patch # User casties # Date 1453491685 -3600 # Node ID ce12475d2109ef9c348666294d6074dd2d98ed03 # Parent 48bbba800c03515cf4ec072466b1c89aa7cc2b76 fix bug with normalized type attribute. diff -r 48bbba800c03 -r ce12475d2109 importFromOpenMind/importer/ismi2model.py --- 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)