Commit 92b40daf authored by Vincent Pelletier's avatar Vincent Pelletier

Allow exporting local roles stored as unicode objects.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44250 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1a11cd9c
......@@ -4203,6 +4203,8 @@ class LocalRolesTemplateItem(BaseTemplateItem):
xml_data += '\n </role>'
xml_data += '\n </local_roles>'
xml_data += '\n</local_roles_item>'
if isinstance(xml_data, unicode)
xml_data = xml_data.encode('utf8')
return xml_data
def export(self, context, bta, **kw):
......
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