Commit 3468c5ce authored by Sebastien Robin's avatar Sebastien Robin

set default permission to () instead of none


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1169 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1672fb49
...@@ -1045,7 +1045,7 @@ class ERP5Conduit(XMLSyncUtilsMixin): ...@@ -1045,7 +1045,7 @@ class ERP5Conduit(XMLSyncUtilsMixin):
roles = self.convertXmlValue(xml.childNodes[0].data,data_type='tokens') roles = self.convertXmlValue(xml.childNodes[0].data,data_type='tokens')
roles = list(roles) # Needed for CPS, or we have a CPS error roles = list(roles) # Needed for CPS, or we have a CPS error
else: else:
roles = None roles = ()
permission = self.getAttribute(xml,'id') permission = self.getAttribute(xml,'id')
LOG('local_role: ',0,'permission: %s roles: %s' % (repr(permission),repr(roles))) LOG('local_role: ',0,'permission: %s roles: %s' % (repr(permission),repr(roles)))
#user = roles[0] #user = roles[0]
......
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