Commit 8a38764e authored by wenjie.zheng's avatar wenjie.zheng

WorkflowTool.py: rename getRoleList to getManagedRoleList for all workflow.

parent beb52929
......@@ -330,13 +330,13 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
state.setStatePermissionRoles(permission_roles)
if sdef.permission_roles is not None:
state.setCellRange(sorted(sdef.permission_roles.keys()),
sorted(workflow.getRoleList()),
sorted(workflow.getManagedRoleList()),
base_id='cell')
i = -1
for permission in sorted(workflow.getWorkflowManagedPermissionList()):
i = i + 1
j = -1
for role in workflow.getRoleList():
for role in workflow.getManagedRoleList():
j = j + 1
pr_cell = state.newContent(id='cell_%s_%s'%(i,j), portal_type='PermissionRoles')
if permission in permission_roles and role in permission_roles[permission]:
......
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