Commit c2d618c0 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

RoleDefinition py3 zip

parent 56224145
......@@ -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