Commit 0e785679 authored by Sebastien Robin's avatar Sebastien Robin

it must be interesting to have all keywords used to call the workflow method,...

it must be interesting to have all keywords used to call the workflow method, so for example we can write a script wich can detect that we have called edit with the keyword title


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2468 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6c3bc716
...@@ -210,7 +210,7 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject): ...@@ -210,7 +210,7 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
script = self.scripts[script_name] script = self.scripts[script_name]
# Pass lots of info to the script in a single parameter. # Pass lots of info to the script in a single parameter.
sci = StateChangeInfo( sci = StateChangeInfo(
ob, self, former_status, tdef, None, None, None) ob, self, former_status, tdef, None, None, kwargs=kw)
try: try:
script(sci) # May throw an exception. script(sci) # May throw an exception.
except ObjectMoved, moved_exc: except ObjectMoved, moved_exc:
...@@ -280,7 +280,7 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject): ...@@ -280,7 +280,7 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
script = self.scripts[script_name] script = self.scripts[script_name]
# Pass lots of info to the script in a single parameter. # Pass lots of info to the script in a single parameter.
sci = StateChangeInfo( sci = StateChangeInfo(
ob, self, status, tdef, None, None, None) ob, self, status, tdef, None, None, kwargs=kw)
try: try:
script(sci) # May throw an exception. script(sci) # May throw an exception.
except ObjectMoved, moved_exc: except ObjectMoved, moved_exc:
......
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