Commit b8ac76b8 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

WorkflowTool.py: getChainsByType method return a regenerated dict to avoid scurity issue.

parent 56352017
......@@ -599,7 +599,10 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
'Base_getWorklistIgnoredSecurityColumnSet', lambda: ())()
def getChainsByType(self):
return self._chains_by_type
type_workflow_dict = {}
for type_id, workflow_id_list in self._chains_by_type.iteritems():
type_workflow_dict.setdefault(type_id, []).append(workflow_id_list)
return type_workflow_dict
def delTypeCBT(self, pt, wf_id):
self._chains_by_type[pt] = tuple(wf for wf in self._chains_by_type[pt] if wf != wf_id)
......
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