Commit b6cc0b85 authored by Sebastien Robin's avatar Sebastien Robin

fixed the duplicate applied rule problem


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4591 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b8d4fd86
......@@ -70,7 +70,8 @@
\n
previous_tag = order.getPath() + \'_firstUpdateAppliedRule\'\n
expand_tag = order.getPath() + \'_expand\'\n
order.activate(tag=expand_tag,after_tag=previous_tag).updateAppliedRule(tag=expand_tag,rule_id = \'default_order_rule\')\n
activate_kw = {\'tag\':expand_tag,\'priority\':3}\n
order.activate(tag=expand_tag,after_tag=previous_tag).updateAppliedRule(rule_id = \'default_order_rule\',activate_kw=activate_kw)\n
\n
\n
order_portal_type = order.getPortalType()\n
......@@ -84,27 +85,28 @@ delivery_builder.activate(activity=\'SQLQueue\',after_tag=expand_tag).build(expl
</item>
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAcAAAAOAAAAQwAA
AHMRAQAAdAAAfAAAZAEAgwIAfQIAdAAAfAIAZAIAgwIAgwAAZAMAF30DAHQAAHwCAGQCAIMCAIMA
AGQEABd9BAB0AAB0AAB8AgBkBQCDAgBkBgB8BABkBwB8AwCDAAJkCACDAgBkBgB8BABkCQBkCgCD
AAIBdAAAfAIAZAsAgwIAgwAAfQUAfAUAZAwAagIAbxwAAXQAAHQAAHwCAGQNAIMCAGQOAIMCAH0G
AG4qAAF8BQBkDwBqAgBvHAABdAAAdAAAfAIAZA0AgwIAZBAAgwIAfQYAbgEAAXQAAHQAAHwGAGQF
AIMCAGQRAGQSAGQHAHwEAIMAAmQTAIMCAGQUAHQAAHwCAGQVAIMCAIMAAIMAAQFkAABTKBYAAABO
cwYAAABvYmplY3RzBwAAAGdldFBhdGhzFwAAAF9maXJzdFVwZGF0ZUFwcGxpZWRSdWxlcwcAAABf
ZXhwYW5kcwgAAABhY3RpdmF0ZXMDAAA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MKAAAAZXhwYW5kX3RhZ3MLAAAAYWN0aXZhdGVfa3dz
EQAAAG9yZGVyX3BvcnRhbF90eXBlcxAAAABkZWxpdmVyeV9idWlsZGVyKAgAAABzDAAAAHN0YXRl
X2NoYW5nZXMJAAAAX2dldGF0dHJfcwUAAABvcmRlcnMMAAAAcHJldmlvdXNfdGFncwoAAABleHBh
bmRfdGFncwsAAABhY3RpdmF0ZV9rd3MRAAAAb3JkZXJfcG9ydGFsX3R5cGVzEAAAAGRlbGl2ZXJ5
X2J1aWxkZXIoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzFgAAAE9yZGVyX2J1aWxkUGFj
a2luZ0xpc3QBAAAAcxQAAAAPAhYBFgEeAS4DEgENARwBDQEiAigBAAAAcxYAAABPcmRlcl9idWls
ZFBhY2tpbmdMaXN0KAEAAABzFgAAAE9yZGVyX2J1aWxkUGFja2luZ0xpc3QoAAAAACgAAAAAcw8A
AABTY3JpcHQgKFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
</item>
<item>
<key> <string>_dav_writelocks</string> </key>
......@@ -149,6 +151,7 @@ AAAAAA==</string> </value>
<string>order</string>
<string>previous_tag</string>
<string>expand_tag</string>
<string>activate_kw</string>
<string>order_portal_type</string>
<string>delivery_builder</string>
</tuple>
......
......@@ -69,22 +69,24 @@
<value> <string>order = state_change.object\n
\n
tag = order.getPath() + \'_firstUpdateAppliedRule\'\n
order.activate(tag=tag).updateAppliedRule(tag=tag,rule_id = \'default_order_rule\')\n
activate_kw = {\'tag\':tag,\'priority\':3}\n
order.activate(tag=tag).updateAppliedRule(rule_id = \'default_order_rule\',activate_kw=activate_kw)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAUAAAAGAAAASwAA
AHNXAAAAdAAAfAAAZAEAgwIAfQMAdAAAfAMAZAIA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RlcxEAAAB1cGRhdGVBcHBs
aWVkUnVsZXMHAAAAcnVsZV9pZHMSAAAAZGVmYXVsdF9vcmRlcl9ydWxlcwsAAABhY3RpdmF0ZV9r
dygFAAAAcwkAAABfZ2V0YXR0cl9zDAAAAHN0YXRlX2NoYW5nZXMFAAAAb3JkZXJzAwAAAHRhZ3ML
AAAAYWN0aXZhdGVfa3coBgAAAHMMAAAAc3RhdGVfY2hhbmdlcwIAAABrd3MJAAAAX2dldGF0dHJf
cwUAAABvcmRlcnMDAAAAdGFncwsAAABhY3RpdmF0ZV9rdygAAAAAKAAAAABzDwAAAFNjcmlwdCAo
UHl0aG9uKXMVAAAAT3JkZXJfY3JlYXRlT3JkZXJSdWxlAQAAAHMGAAAADwIWAR4BKAEAAABzFQAA
AE9yZGVyX2NyZWF0ZU9yZGVyUnVsZSgBAAAAcxUAAABPcmRlcl9jcmVhdGVPcmRlclJ1bGUoAAAA
ACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
</item>
<item>
<key> <string>_filepath</string> </key>
......@@ -123,6 +125,7 @@ dWxlPgEAAABzAAAAAA==</string> </value>
<string>_getattr_</string>
<string>order</string>
<string>tag</string>
<string>activate_kw</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