Commit 7f7d4938 authored by Yusei Tahara's avatar Yusei Tahara

Invoke workflow transition in a customizable type based method.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21220 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af9fe51c
...@@ -337,12 +337,6 @@ class NotificationTool(BaseTool): ...@@ -337,12 +337,6 @@ class NotificationTool(BaseTool):
portal_workflow = getToolByName(self, 'portal_workflow') portal_workflow = getToolByName(self, 'portal_workflow')
for event in event_list: for event in event_list:
# transit workflow if event_workflow is available.
if ('event_workflow' in portal_workflow.getChainFor(event) and
callable(getattr(event, 'plan', None))):
event.plan()
event.order()
event.start()
event.send(**low_level_kw) event.send(**low_level_kw)
return return
......
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