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

XMLExportImport.py: resolve the conflict of list/tuple type value can't be...

XMLExportImport.py: resolve the conflict of list/tuple type value can't be convert into text problem.
parent 2998c11b
......@@ -118,6 +118,9 @@ 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):
sub_object.text = str(value)
else:
sub_object.text = unicode(escape(value), 'utf-8')
elif prop_type != 'None':
sub_object.text = str(value)
......
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