From 0e785679be3a277a360bd10015e2dcb1b1b5e7f1 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Mon, 14 Feb 2005 15:41:42 +0000
Subject: [PATCH] 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
---
 product/ERP5/InteractionWorkflow.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/InteractionWorkflow.py b/product/ERP5/InteractionWorkflow.py
index cd8dd868d5..7051b9b21c 100755
--- a/product/ERP5/InteractionWorkflow.py
+++ b/product/ERP5/InteractionWorkflow.py
@@ -210,7 +210,7 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
                     script = self.scripts[script_name]
                     # Pass lots of info to the script in a single parameter.
                     sci = StateChangeInfo(
-                        ob, self, former_status, tdef, None, None, None)
+                        ob, self, former_status, tdef, None, None, kwargs=kw)
                     try:
                         script(sci)  # May throw an exception.
                     except ObjectMoved, moved_exc:
@@ -280,7 +280,7 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
                     script = self.scripts[script_name]
                     # Pass lots of info to the script in a single parameter.
                     sci = StateChangeInfo(
-                        ob, self, status, tdef, None, None, None)
+                        ob, self, status, tdef, None, None, kwargs=kw)
                     try:
                         script(sci)  # May throw an exception.
                     except ObjectMoved, moved_exc:
-- 
2.30.9