Commit 649f6f87 authored by Jérome Perrin's avatar Jérome Perrin

RoleDefinition py3 zip

parent 3eace3b1
...@@ -53,7 +53,7 @@ class RoleDefinition(XMLObject): ...@@ -53,7 +53,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