Commit 68bc3bf5 authored by Sebastien Robin's avatar Sebastien Robin

use tags in PackingList_updateAppliedRule.xml, this fix test_15 of testOrder on my box


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4656 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af791fc7
...@@ -23,7 +23,16 @@ ...@@ -23,7 +23,16 @@
<item> <item>
<key> <string>__ac_local_roles__</string> </key> <key> <string>__ac_local_roles__</string> </key>
<value> <value>
<none/> <dictionary>
<item>
<key> <string>rc</string> </key>
<value>
<list>
<string>Owner</string>
</list>
</value>
</item>
</dictionary>
</value> </value>
</item> </item>
<item> <item>
...@@ -71,39 +80,60 @@ LOG=lambda msg:\'DISABLED\'\n ...@@ -71,39 +80,60 @@ LOG=lambda msg:\'DISABLED\'\n
\n \n
packing_list = state_change.object\n packing_list = state_change.object\n
\n \n
packing_list.updateAppliedRule(rule_id = "default_delivery_rule")\n \n
activate_kw = {}\n
related_order = context.getCausalityValue()\n
after_path_list = []\n
if related_order is not None:\n
after_path_list.append(related_order.getPath() + \'_firstUpdateAppliedRule\')\n
after_path_list.append(related_order.getPath() + \'_expand\')\n
tag = packing_list.getPath()+\'_expand\'\n
activate_kw = {\'tag\':tag,\'priority\':3}\n
\n
packing_list.activate(after_path=after_path_list,tag=tag,\n
priority=3).updateAppliedRule(rule_id = \'default_delivery_rule\',activate_kw=activate_kw)\n
\n
\n \n
# Make sure to reindex related simulation movement if we are already\n # Make sure to reindex related simulation movement if we are already\n
# simulated\n # simulated\n
packing_list.activate().applyToDeliveryRelatedMovement(method_id=\'recursiveReindexObject\')\n packing_list.activate(after_path=after_path_list,tag=tag,\n
priority=3).applyToDeliveryRelatedMovement(method_id=\'recursiveReindexObject\')\n
\n \n
packing_list.startBuilding()\n packing_list.startBuilding()\n
packing_list.activate(\n packing_list.activate(\n
after_method_id = (\'immediateReindexObject\', \'recursiveImmediateReindexObject\', \'expand\'),\n after_tag = tag,\n
).updateCausalityState()\n ).updateCausalityState()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAUAAAAHAAAASwAA <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAsAAAAMAAAASwAA
AHOYAAAAZAEAhAAAfQIAZAIAhAAAfQIAdAEAfAAAZAMAgwIAfQQAdAEAfAQAZAQAgwIAZAUAZAYA AHNoAQAAZAEAhAAAfQIAZAIAhAAAfQIAdAEAfAAAZAMAgwIAfQQAaAAAfQUAdAEAdAUAZAQAgwIA
gwABAXQBAHQBAHwEAGQHAIMCAIMAAGQIAIMCAGQJAGQKAIMAAQF0AQB8BABkCwCDAgCDAAABdAEA gwAAfQcAZwAAfQgAfAcAdAgAagkAb0oAAXQBAHwIAGQFAIMCAHQBAHwHAGQGAIMCAIMAAGQHABeD
dAEAfAQAZAcAgwIAZAwAZA0AZA4AZA8AZgMAgwABZBAAgwIAgwAAAWQAAFMoEQAAAE5jAQAAAAMA AQABdAEAfAgAZAUAgwIAdAEAfAcAZAYAgwIAgwAAZAgAF4MBAAFuAQABdAEAfAQAZAYAgwIAgwAA
AAADAAAAQwAAAHMWAAAAdAAAdAEAZAEAgwIAZAIAfAAAgwIAUygDAAAATnMDAAAAbG9ncx0AAABQ ZAgAF30KAGgAAARkCQB8CgADPARkCgBkCwADPH0FAHQBAHQBAHwEAGQMAIMCAGQNAHwIAGQJAHwK
YWNraW5nTGlzdF91cGRhdGVBcHBsaWVkUnVsZSgDAAAAcwkAAABfZ2V0YXR0cl9zBwAAAGNvbnRl AGQKAGQLAIMAA2QOAIMCAGQPAGQQAGQRAHwFAIMAAgF0AQB0AQB8BABkDACDAgBkDQB8CABkCQB8
eHRzAwAAAG1zZygDAAAAcwMAAABtc2dzCQAAAF9nZXRhdHRyX3MHAAAAY29udG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a3dzBwAAAGNvbnRleHRzDQAAAHJlbGF0ZWRfb3JkZXJzDwAAAGFmdGVyX3BhdGhf
bGlzdHMEAAAATm9uZXMDAAAAdGFnKAsAAABzDAAAAHN0YXRlX2NoYW5nZXMCAAAAa3dzAwAAAExP
R3MJAAAAX2dldGF0dHJfcwwAAABwYWNraW5nX2xpc3RzCwAAAGFjdGl2YXRlX2t3cwcAAABjb250
ZXh0cw0AAAByZWxhdGVkX29yZGVycw8AAABhZnRlcl9wYXRoX2xpc3RzBAAAAE5vbmVzAwAAAHRh
ZygAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMdAAAAUGFja2luZ0xpc3RfdXBkYXRlQXBw
bGllZFJ1bGUBAAAAcyAAAAAJAQkCDwMGARIBBgEQASMBJAEWAR4CLQENBTEDEwEMASgBAAAAcx0A
AABQYWNraW5nTGlzdF91cGRhdGVBcHBsaWVkUnVsZSgBAAAAcx0AAABQYWNraW5nTGlzdF91cGRh AABQYWNraW5nTGlzdF91cGRhdGVBcHBsaWVkUnVsZSgBAAAAcx0AAABQYWNraW5nTGlzdF91cGRh
dGVBcHBsaWVkUnVsZSgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4B dGVBcHBsaWVkUnVsZSgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4B
AAAAcwAAAAA=</string> </value> AAAAcwAAAAA=</string> </value>
...@@ -145,6 +175,12 @@ AAAAcwAAAAA=</string> </value> ...@@ -145,6 +175,12 @@ AAAAcwAAAAA=</string> </value>
<string>LOG</string> <string>LOG</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>packing_list</string> <string>packing_list</string>
<string>activate_kw</string>
<string>context</string>
<string>related_order</string>
<string>after_path_list</string>
<string>None</string>
<string>tag</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
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