Commit e1fd2d6d authored by Jérome Perrin's avatar Jérome Perrin

RoleDefinition py3 zip

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