Commit 59afad3a authored by Jérome Perrin's avatar Jérome Perrin

RoleDefinition py3 zip

parent c96ad29a
......@@ -55,7 +55,7 @@ class RoleDefinition(XMLObject):
def _setRoleName(self, value):
if value and value not in \
zip(*self.RoleDefinition_getRoleNameItemList())[1]:
list(zip(*self.RoleDefinition_getRoleNameItemList()))[1]:
raise Unauthorized("You are not allowed to give %s role" % value)
self._baseSetRoleName(value)
......
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