Commit 31290082 authored by Aurel's avatar Aurel

do sort on list and not tuple


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4331 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 20b84f26
......@@ -1415,7 +1415,7 @@ class ModuleTemplateItem(BaseTemplateItem):
for perm in permission_list:
xml_data += os.linesep+' <permission>'
xml_data += os.linesep+' <name>%s</name>' %(perm[0])
role_list = perm[1]
role_list = list(perm[1])
role_list.sort()
for role in role_list:
xml_data += os.linesep+' <role>%s</role>' %(role)
......
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