Mercurial > hg > drupalISMI
comparison importFromOpenMind/importer/ismixml2model.py @ 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 | be1c7d6814b6 |
comparison
equal
deleted
inserted
replaced
54:b9a6e596ebe4 | 55:5a1a4af235eb |
---|---|
92 attrs = {} | 92 attrs = {} |
93 | 93 |
94 # get attributes element | 94 # get attributes element |
95 atts_elem = ent_elem.find('attributes') | 95 atts_elem = ent_elem.find('attributes') |
96 | 96 |
97 # more text content of entity element | |
98 ov += atts_elem.tail or '' | |
99 | |
100 if atts_elem is None: | 97 if atts_elem is None: |
101 log('DEBUG', "entity has no attributes: %s"%ent_elem) | 98 log('DEBUG', "entity has no attributes: %s"%ent_elem) |
102 | 99 |
103 else: | 100 else: |
101 # text content of entity element after atts_elem | |
102 ov += atts_elem.tail or '' | |
103 | |
104 # go through all attributes | 104 # go through all attributes |
105 for att_elem in atts_elem: | 105 for att_elem in atts_elem: |
106 ct = att_elem.get('content-type', None) | 106 ct = att_elem.get('content-type', None) |
107 name = att_elem.get('name', None) | 107 name = att_elem.get('name', None) |
108 if name in exclude_attributes_of_type: | 108 if name in exclude_attributes_of_type: |