Commit 62413ea3 authored by Alexandre Boeglin's avatar Alexandre Boeglin

* remove whitespaces at the end of interaction ids that result in "%20" in the filenames

* do not call edit recursively, simply call the appropriate script instead

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16105 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2ec3bfbb
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Interaction" module="Products.ERP5.Interaction"/> <tuple>
<tuple/> <string>Products.ERP5.Interaction</string>
<string>Interaction</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="InteractionDefinition" module="Products.ERP5.Interaction"/> <tuple>
<tuple/> <string>Products.ERP5.Interaction</string>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -53,7 +56,7 @@ ...@@ -53,7 +56,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>DeliveryCell_edit_UpdateSimulation </string> </value> <value> <string>DeliveryCell_edit_UpdateSimulation</string> </value>
</item> </item>
<item> <item>
<key> <string>method_id</string> </key> <key> <string>method_id</string> </key>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="InteractionDefinition" module="Products.ERP5.Interaction"/> <tuple>
<tuple/> <string>Products.ERP5.Interaction</string>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="InteractionDefinition" module="Products.ERP5.Interaction"/> <tuple>
<tuple/> <string>Products.ERP5.Interaction</string>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -55,7 +58,7 @@ FIXME: reindexObjectSecurity is probably not optimal, it may launch unnecessary ...@@ -55,7 +58,7 @@ FIXME: reindexObjectSecurity is probably not optimal, it may launch unnecessary
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Delivery_changeSimulationState_ReindexSimulation </string> </value> <value> <string>Delivery_changeSimulationState_ReindexSimulation</string> </value>
</item> </item>
<item> <item>
<key> <string>method_id</string> </key> <key> <string>method_id</string> </key>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="InteractionDefinition" module="Products.ERP5.Interaction"/> <tuple>
<tuple/> <string>Products.ERP5.Interaction</string>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Scripts" module="Products.DCWorkflow.Scripts"/> <tuple>
<tuple/> <string>Products.DCWorkflow.Scripts</string>
<string>Scripts</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <tuple>
<tuple/> <string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -66,7 +69,8 @@ ...@@ -66,7 +69,8 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string># trigger the simulation update from the parent line\n <value> <string># trigger the simulation update from the parent line\n
sci[\'object\'].getParentValue().edit()\n line = sci[\'object\'].getParentValue()\n
context.DeliveryLine_UpdateSimulation(sci, line)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -112,6 +116,8 @@ sci[\'object\'].getParentValue().edit()\n ...@@ -112,6 +116,8 @@ sci[\'object\'].getParentValue().edit()\n
<string>sci</string> <string>sci</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>line</string>
<string>context</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <tuple>
<tuple/> <string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -65,8 +68,13 @@ ...@@ -65,8 +68,13 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string># trigger the simulation update from the parent invoice\n <value> <string># trigger the simulation update from the parent delivery\n
sci[\'object\'].getParentValue().edit()\n \n
if obj is None:\n
delivery = sci[\'object\'].getParentValue()\n
else:\n
delivery = obj\n
context.Delivery_UpdateSimulation(sci, delivery)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -83,7 +91,7 @@ sci[\'object\'].getParentValue().edit()\n ...@@ -83,7 +91,7 @@ sci[\'object\'].getParentValue().edit()\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>sci</string> </value> <value> <string>sci, obj=None</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -103,15 +111,19 @@ sci[\'object\'].getParentValue().edit()\n ...@@ -103,15 +111,19 @@ sci[\'object\'].getParentValue().edit()\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>1</int> </value> <value> <int>2</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>sci</string> <string>sci</string>
<string>obj</string>
<string>None</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>delivery</string>
<string>context</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -123,7 +135,9 @@ sci[\'object\'].getParentValue().edit()\n ...@@ -123,7 +135,9 @@ sci[\'object\'].getParentValue().edit()\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <tuple>
<tuple/> <string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <tuple>
<tuple/> <string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -72,7 +75,11 @@ It is responsible of updating the applied rule\n ...@@ -72,7 +75,11 @@ It is responsible of updating the applied rule\n
\n \n
"""\n """\n
\n \n
delivery = sci[\'object\']\n if obj is None:\n
delivery = sci[\'object\']\n
else:\n
delivery = obj\n
\n
delivery_portal_type = delivery.getPortalType()\n delivery_portal_type = delivery.getPortalType()\n
portal = sci.getPortal()\n portal = sci.getPortal()\n
LOG = lambda msg:delivery.log("delivery_edit_workflow.Delivery_UpdateSimulation (%s)\\n" % (delivery.getPath()), msg)\n LOG = lambda msg:delivery.log("delivery_edit_workflow.Delivery_UpdateSimulation (%s)\\n" % (delivery.getPath()), msg)\n
...@@ -122,7 +129,7 @@ LOG(\'END\')\n ...@@ -122,7 +129,7 @@ LOG(\'END\')\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>sci</string> </value> <value> <string>sci, obj=None</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -142,13 +149,15 @@ LOG(\'END\')\n ...@@ -142,13 +149,15 @@ LOG(\'END\')\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>1</int> </value> <value> <int>2</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>sci</string> <string>sci</string>
<string>obj</string>
<string>None</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>delivery</string> <string>delivery</string>
<string>_getattr_</string> <string>_getattr_</string>
...@@ -171,7 +180,9 @@ LOG(\'END\')\n ...@@ -171,7 +180,9 @@ LOG(\'END\')\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Variables" module="Products.DCWorkflow.Variables"/> <tuple>
<tuple/> <string>Products.DCWorkflow.Variables</string>
<string>Variables</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Worklists" module="Products.DCWorkflow.Worklists"/> <tuple>
<tuple/> <string>Products.DCWorkflow.Worklists</string>
<string>Worklists</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
101 105
\ No newline at end of file \ 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