Changeset 2721 in products for quintagroup.transmogrifier/branches/dictionary/quintagroup/transmogrifier/namespaces/atns.py
- Timestamp:
- Aug 4, 2010 2:11:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.transmogrifier/branches/dictionary/quintagroup/transmogrifier/namespaces/atns.py
r2720 r2721 59 59 60 60 is_ref = self.isReference(instance) 61 62 61 for value in values: 63 62 node = dom.createElementNS(self.namespace.xmlns, "field") … … 65 64 name_attr.value = self.name 66 65 node.setAttributeNode(name_attr) 67 68 # try to get 'utf-8' encoded string 69 items = getattr(value, 'items', _marker) 66 # map and not map fields 67 # take-off aquisition 68 if hasattr(value, 'aq_base'): 69 chck_val = value.aq_base 70 else: 71 chck_val = value 72 items = getattr(chck_val, 'items', _marker) 70 73 if items is not _marker and callable(items): 71 74 # Map field
Note: See TracChangeset
for help on using the changeset viewer.