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

InteractionWOrkflow.py: add getValidRoleList to get available roles defined in acl_users.

parent 8928e85b
...@@ -46,7 +46,7 @@ from Products.ERP5Type.patches.Expression import Expression_createExprContext ...@@ -46,7 +46,7 @@ from Products.ERP5Type.patches.Expression import Expression_createExprContext
_MARKER = [] _MARKER = []
class InteractionWorkflow(Workflow, XMLObject): class InteractionWorkflow(XMLObject):
""" """
An ERP5 Interaction Workflow. An ERP5 Interaction Workflow.
""" """
...@@ -187,3 +187,6 @@ class InteractionWorkflow(Workflow, XMLObject): ...@@ -187,3 +187,6 @@ class InteractionWorkflow(Workflow, XMLObject):
return 0 return 0
return Workflow._checkTransitionGuard(self, t, ob, **kw) return Workflow._checkTransitionGuard(self, t, ob, **kw)
def getValidRoleList(self):
return sorted(self.getPortalObject().getDefaultModule('acl_users').valid_roles())
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