Commit 81caf7f3 authored by Julien Muchembled's avatar Julien Muchembled

Remove the useless '**kw' parameter (state_change is the only possible...

Remove the useless '**kw' parameter (state_change is the only possible parameter for workflow scripts) and provide a way to pass parameters to the activate call.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27721 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e80130fb
......@@ -54,7 +54,8 @@
<item>
<key> <string>_body</string> </key>
<value> <string>delivery = state_change[\'object\']\n
delivery.activate().updateCausalityState()\n
activate_kw = state_change[\'kwargs\'].get(\'activate_kw\') or {}\n
delivery.activate(**activate_kw).updateCausalityState()\n
</string> </value>
</item>
<item>
......@@ -65,7 +66,7 @@ delivery.activate().updateCausalityState()\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change, **kw</string> </value>
<value> <string>state_change</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
......@@ -100,10 +101,11 @@ delivery.activate().updateCausalityState()\n
<value>
<tuple>
<string>state_change</string>
<string>kw</string>
<string>_getitem_</string>
<string>delivery</string>
<string>_getattr_</string>
<string>activate_kw</string>
<string>_apply_</string>
</tuple>
</value>
</item>
......
601
\ No newline at end of file
602
\ No newline at end of file
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