Commit 7a6e65cc authored by wenjie.zheng's avatar wenjie.zheng

WorkflowTool.py: redefine getWorkflowsFor to getWorkflowValueListFor.

parent 2d13e281
......@@ -201,12 +201,14 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
for workflow_id in portal_type.getTypeWorkflowList():
workflow_list.append(self._getOb(workflow_id))
for wf in self.getWorkflowsFor(portal_type_id):
# checking DC Workflow assignment
if wf is not None:
workflow_list.append(wf)
for wf_id in self.getChainFor(portal_type_id):
wf = self.getWorkflowById(wf_id)
if wf is not None:
workflow_list.append(wf)
return workflow_list
getWorkflowsFor = getWorkflowValueListFor
security.declarePrivate('getHistoryOf')
def getHistoryOf(self, wf_id, ob):
""" Get the history of an object for a given workflow.
......
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