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

Workflow.py: add an universal method to get dict of workflow script values.

parent cdbc69c9
......@@ -536,6 +536,12 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject):
id_list.append(ob.getReference())
return id_list
def getScriptValueList(self):
scripts = {}
for script in self.objectValues(portal_type='Workflow Script'):
scripts[script.getId()] = script
return scripts
def notifyWorkflowMethod(self, ob, transition_list, args=None, kw=None):
""" Execute workflow methods.
"""
......
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