changeset 55:5a1a4af235eb

fix fix of transfer of ownvalue to _label attribute.
author casties
date Fri, 21 Apr 2017 19:08:09 +0200
parents b9a6e596ebe4
children f5e078e903df
files importFromOpenMind/importer/ismixml2model.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/importFromOpenMind/importer/ismixml2model.py	Fri Apr 21 19:04:09 2017 +0200
+++ b/importFromOpenMind/importer/ismixml2model.py	Fri Apr 21 19:08:09 2017 +0200
@@ -94,13 +94,13 @@
     # get attributes element
     atts_elem = ent_elem.find('attributes')
 
-    # more text content of entity element
-    ov += atts_elem.tail or ''
-    
     if atts_elem is None:
         log('DEBUG', "entity has no attributes: %s"%ent_elem)
         
     else:
+        # text content of entity element after atts_elem
+        ov += atts_elem.tail or ''
+        
         # go through all attributes
         for att_elem in atts_elem:
             ct = att_elem.get('content-type', None)