Commit cab79300 authored by iv's avatar iv

ERP5Workflow: remove _invokeWithNotification

It should not be useful with the new WorkflowTool.
parent 48ea10b2
...@@ -213,9 +213,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -213,9 +213,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
raise WorkflowException(_(u'Requested workflow definition not found.')) raise WorkflowException(_(u'Requested workflow definition not found.'))
if workflow.getPortalType() == 'Workflow': if workflow.getPortalType() == 'Workflow':
action_id = workflow.getTransitionIdByReference(action_reference) action_id = workflow.getTransitionIdByReference(action_reference)
result = self._invokeWithNotification( result = workflow.doActionFor(current_object, action_id)
workflow_list, current_object, action_id, workflow.doActionFor,
(current_object, action_id) + args, kw)
return result return result
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
......
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