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 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
......@@ -54,23 +51,7 @@
<item>
<key> <string>_body</string> </key>
<value> <string>order = state_change[\'object\']\n
order_path = order.getPath()\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
order.Delivery_updateSimulation()\n
</string> </value>
</item>
<item>
......@@ -112,12 +93,6 @@ order.activate(\n
<string>_getitem_</string>
<string>order</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>
</value>
</item>
......
972
\ No newline at end of file
976
\ 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