changeset 27:3fce3fa9097e

ignore notes_old.
author casties
date Tue, 06 Oct 2015 13:03:23 +0200
parents 248bf8d1e2e7
children a9bfd49355f8
files importFromOpenMind/importer/ismi2model.py
diffstat 1 files changed, 10 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/importFromOpenMind/importer/ismi2model.py	Thu Sep 24 18:58:30 2015 +0200
+++ b/importFromOpenMind/importer/ismi2model.py	Tue Oct 06 13:03:23 2015 +0200
@@ -14,6 +14,14 @@
 # node types to exclude from the graph
 exclude_objects_of_type = ['DIGITALIZATION', 'REFERENCE']
 
+# attributes to exclude
+exclude_attributes_of_type = [
+    'lw',
+    'node_type',
+    'nov',
+    'notes_old'
+]
+
 
 entsURL=baseURL+"method=get_ents&oc=%s"
 
@@ -42,11 +50,6 @@
 ismi_relations = {}
 nx_relations = {}
 
-ent_exclude_attrs = [
-    'lw',
-    'node_type',
-    'nov'
-]
 
 def fixName(name, is_src_rel=False, is_tar_rel=False, att_from_rel=False):
     # these are too embarrassing...
@@ -87,7 +90,7 @@
             key = att['name']
             val = att['ov']
             
-            if key in ent_exclude_attrs:
+            if key in exclude_attributes_of_type:
                 # exclude attribute
                 continue
 
@@ -99,7 +102,7 @@
             key = att['name']
             val = att['ov']
             
-            if key in ent_exclude_attrs:
+            if key in exclude_attributes_of_type:
                 # exclude attribute
                 continue