Commit 852b9280 authored by Romain Courteaud's avatar Romain Courteaud

InteractionWorkflow can be identicated by class name, not by meta type.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2693 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f8484f17
...@@ -857,14 +857,14 @@ class ERP5WorkflowTool(WorkflowTool): ...@@ -857,14 +857,14 @@ class ERP5WorkflowTool(WorkflowTool):
return apply(func, args, kw) return apply(func, args, kw)
no_interaction = 0 no_interaction = 0
for w in wf_list: for w in wf_list:
if w.meta_type != 'Interaction Workflow': if w.__class__.__name__ == 'InteractionWorkflowDefinition':
no_interaction = 1 no_interaction = 1
for w in wfs: for w in wfs:
w.notifyBefore(ob, method_id, args=args, kw=kw) w.notifyBefore(ob, method_id, args=args, kw=kw)
# Check if there is at least 1 non interaction workflow # Check if there is at least 1 non interaction workflow
if no_interaction: if no_interaction:
for w in wf_list: for w in wf_list:
if w.meta_type != 'Interaction Workflow': if w.__class__.__name__ == 'InteractionWorkflowDefinition':
result = self._invokeWithNotification( result = self._invokeWithNotification(
[], ob, method_id, w.wrapWorkflowMethod, [], ob, method_id, w.wrapWorkflowMethod,
(ob, method_id, func, args, kw), {}) (ob, method_id, func, args, kw), {})
......
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