Commit 35839f79 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Mimic implementation of DCWorkflow.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15978 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5e5596df
......@@ -178,12 +178,11 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
NOTE: this method is not used in ERP5 because
of transition_list approach
'''
for t in self.interactions.values():
if t.trigger_type == TRIGGER_WORKFLOW_METHOD:
if method_id in t.method_id:
if ((t.portal_type_filter is None or ob.getPortalType() in t.portal_type_filter)
and self._checkTransitionGuard(t, ob)):
return 1
tdef = self.interactions.get(method_id, None)
if (tdef is not None and
tdef.trigger_type == TRIGGER_WORKFLOW_METHOD and
self._checkTransitionGuard(tdef, ob)):
return 1
return 0
......
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