Commit e06cfd3c authored by wenjie.zheng's avatar wenjie.zheng

PermissionRoles.py: remove LOGs.

parent cbd66c77
...@@ -73,14 +73,14 @@ class PermissionRoles(XMLObject): ...@@ -73,14 +73,14 @@ class PermissionRoles(XMLObject):
permission_id = int(self.id.split('_')[1]) permission_id = int(self.id.split('_')[1])
role_id = int(self.id.split('_')[2]) role_id = int(self.id.split('_')[2])
### zwj: make sure here gets the right coordinates ### zwj: make sure here gets the right coordinates
LOG('zwj: Assign %s to %s' %(role_id, permission_id), WARNING, "in PermissionRole.") #LOG('zwj: Assign %s to %s' %(role_id, permission_id), WARNING, "in PermissionRole.")
erp5workflow = self.getParent().getParent() erp5workflow = self.getParent().getParent()
permission_list = sorted(erp5workflow.getManagedPermissionList()) permission_list = sorted(erp5workflow.getManagedPermissionList())
role_list = erp5workflow.getRoleList() role_list = erp5workflow.getRoleList()
permission = permission_list[permission_id] permission = permission_list[permission_id]
role = role_list[role_id] role = role_list[role_id]
### zwj: check the name of the role and permission is the ones we want ### zwj: check the name of the role and permission is the ones we want
LOG('zwj: Assign %s to %s' %(role, permission), WARNING, "in PermissionRole.") #LOG('zwj: Assign %s to %s' %(role, permission), WARNING, "in PermissionRole.")
if role == 'None': if role == 'None':
role = ['Manager'] role = ['Manager']
return permission, role return permission, role
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