Commit 506c2d65 authored by Jérome Perrin's avatar Jérome Perrin

remove return inside for loop


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4033 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 43e466e9
...@@ -215,7 +215,6 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject): ...@@ -215,7 +215,6 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
except ObjectMoved, moved_exc: except ObjectMoved, moved_exc:
ob = moved_exc.getNewObject() ob = moved_exc.getNewObject()
# Re-raise after transition # Re-raise after transition
return
security.declarePrivate('notifySuccess') security.declarePrivate('notifySuccess')
def notifySuccess(self, ob, action, result, args=None, kw=None): def notifySuccess(self, ob, action, result, args=None, kw=None):
...@@ -289,8 +288,6 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject): ...@@ -289,8 +288,6 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
# Execute the "after" script. # Execute the "after" script.
for script_name in tdef.activate_script_name: for script_name in tdef.activate_script_name:
self.activate(activity='SQLQueue').activeScript(script_name, ob.getRelativeUrl(), status, tdef.id) self.activate(activity='SQLQueue').activeScript(script_name, ob.getRelativeUrl(), status, tdef.id)
return
security.declarePrivate('activeScript') security.declarePrivate('activeScript')
def activeScript(self, script_name, ob_url, status, tdef_id): def activeScript(self, script_name, ob_url, status, tdef_id):
......
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