Commit 67983b42 authored by Jérome Perrin's avatar Jérome Perrin

RoleDefinition py3 zip

parent b15ed6e9
......@@ -53,7 +53,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