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