Commit 1732185c authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

XMLExportImport.py: add compatibility to export a dict type property value.

parent f02deca2
...@@ -118,7 +118,7 @@ def Base_asXML(object, root=None): ...@@ -118,7 +118,7 @@ def Base_asXML(object, root=None):
for word in value] for word in value]
sub_object.append(marshaller(value)) sub_object.append(marshaller(value))
elif prop_type in ('text', 'string',): elif prop_type in ('text', 'string',):
if type(value) in (tuple, list): if type(value) in (tuple, list, dict):
sub_object.text = str(value) sub_object.text = str(value)
else: else:
sub_object.text = unicode(escape(value), 'utf-8') sub_object.text = unicode(escape(value), 'utf-8')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment