Commit 9cd0cdf4 authored by Romain Courteaud's avatar Romain Courteaud

Encode local_roles to UTF-8


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19310 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a6f9ca64
......@@ -4025,6 +4025,8 @@ class LocalRolesTemplateItem(BaseTemplateItem):
local_roles_dict = {}
for role in local_roles_list:
id = role.getAttribute('id')
if isinstance(id, unicode):
id = id.encode('utf-8')
item_type_list = []
item_list = role.getElementsByTagName('item')
for item in item_list:
......@@ -4036,6 +4038,8 @@ class LocalRolesTemplateItem(BaseTemplateItem):
group_local_roles_dict = {}
for role in local_roles_list:
id = role.getAttribute('id')
if isinstance(id, unicode):
id = id.encode('utf-8')
item_type_list = []
item_list = role.getElementsByTagName('item')
for item in item_list:
......
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