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 @@
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
<dictionary>
<item>
<key> <string>rc</string> </key>
<value>
<list>
<string>Owner</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
......@@ -71,39 +80,60 @@ LOG=lambda msg:\'DISABLED\'\n
\n
packing_list = state_change.object\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
# Make sure to reindex related simulation movement if we are already\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
packing_list.startBuilding()\n
packing_list.activate(\n
after_method_id = (\'immediateReindexObject\', \'recursiveImmediateReindexObject\', \'expand\'),\n
after_tag = tag,\n
).updateCausalityState()\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAUAAAAHAAAASwAA
AHOYAAAAZAEAhAAAfQIAZAIAhAAAfQIAdAEAfAAAZAMAgwIAfQQAdAEAfAQAZA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zCwAAAGFjdGl2YXRlX2t3cwcAAABjb250
ZXh0cw0AAAByZWxhdGVkX29yZGVycw8AAABhZnRlcl9wYXRoX2xpc3RzBAAAAE5vbmVzAwAAAHRh
ZygAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMdAAAAUGFja2luZ0xpc3RfdXBkYXRlQXBw
bGllZFJ1bGUBAAAAcyAAAAAJAQkCDwMGARIBBgEQASMBJAEWAR4CLQENBTEDEwEMASgBAAAAcx0A
AABQYWNraW5nTGlzdF91cGRhdGVBcHBsaWVkUnVsZSgBAAAAcx0AAABQYWNraW5nTGlzdF91cGRh
dGVBcHBsaWVkUnVsZSgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4B
AAAAcwAAAAA=</string> </value>
......@@ -145,6 +175,12 @@ AAAAcwAAAAA=</string> </value>
<string>LOG</string>
<string>_getattr_</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>
</value>
</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