Commit 50b2e324 authored by Nicolas Delaby's avatar Nicolas Delaby

Convert unicode in utf-8 for properties in role definition

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19224 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3415c64a
......@@ -2384,6 +2384,8 @@ class PortalTypeRolesTemplateItem(BaseTemplateItem):
bta.addFolder(name=root_path)
for key in self._objects.keys():
xml_data = self.generateXml(key)
if isinstance(xml_data, unicode):
xml_data = xml_data.encode('utf-8')
name = key.split('/', 1)[1]
bta.addObject(obj=xml_data, name=name, path=root_path)
......
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