Commit 1b138f94 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Add support for lists into manage_exportProperties.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3691 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2cc6f036
...@@ -397,7 +397,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base): ...@@ -397,7 +397,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
if type(value) == type(""): if type(value) == type(""):
f.write(' <property id=%s type="str">%s</property>\n' % (quoteattr(id), escape(value))) f.write(' <property id=%s type="str">%s</property>\n' % (quoteattr(id), escape(value)))
elif type(value) == type(()): elif type(value) in (type(()), type([])):
f.write(' <property id=%s type="tuple">\n' % quoteattr(id)) f.write(' <property id=%s type="tuple">\n' % quoteattr(id))
for item in value: for item in value:
if type(item) == type(""): if type(item) == type(""):
......
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