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):
for word in value]
sub_object.append(marshaller(value))
elif prop_type in ('text', 'string',):
if type(value) in (tuple, list):
if type(value) in (tuple, list, dict):
sub_object.text = str(value)
else:
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