Delegate the Delivery_updateAppliedRule call to Delivery_updateSimulation,...

Delegate the Delivery_updateAppliedRule call to Delivery_updateSimulation, which correctly serializes the activation call, instead of duplicating the calculation of the activity tags.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37885 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d4c4b5f
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -54,23 +51,7 @@ ...@@ -54,23 +51,7 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>order = state_change[\'object\']\n <value> <string>order = state_change[\'object\']\n
order_path = order.getPath()\n order.Delivery_updateSimulation()\n
path_and_method_id = (order_path, (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))\n
expand_tag = order_path + \'_expand\'\n
tag = order_path + \'_updateAppliedRule\'\n
\n
priority = 3\n
\n
activate_kw = { \n
\'tag\': expand_tag,\n
\'priority\': priority,\n
}\n
order.activate(\n
after_path_and_method_id=path_and_method_id,\n
after_tag=expand_tag,\n
tag=tag,\n
priority=priority,\n
).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -112,12 +93,6 @@ order.activate(\n ...@@ -112,12 +93,6 @@ order.activate(\n
<string>_getitem_</string> <string>_getitem_</string>
<string>order</string> <string>order</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>order_path</string>
<string>path_and_method_id</string>
<string>expand_tag</string>
<string>tag</string>
<string>priority</string>
<string>activate_kw</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
972 976
\ 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