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 @@ ...@@ -70,7 +70,8 @@
\n \n
previous_tag = order.getPath() + \'_firstUpdateAppliedRule\'\n previous_tag = order.getPath() + \'_firstUpdateAppliedRule\'\n
expand_tag = order.getPath() + \'_expand\'\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
\n \n
order_portal_type = order.getPortalType()\n order_portal_type = order.getPortalType()\n
...@@ -84,27 +85,28 @@ delivery_builder.activate(activity=\'SQLQueue\',after_tag=expand_tag).build(expl ...@@ -84,27 +85,28 @@ delivery_builder.activate(activity=\'SQLQueue\',after_tag=expand_tag).build(expl
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAcAAAAOAAAAQwAA <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAgAAAAOAAAAQwAA
AHMRAQAAdAAAfAAAZAEAgwIAfQIAdAAAfAIAZAIAgwIAgwAAZAMAF30DAHQAAHwCAGQCAIMCAIMA AHMpAQAAdAAAfAAAZAEAgwIAfQIAdAAAfAIAZAIAgwIAgwAAZAMAF30DAHQAAHwCAGQCAIMCAIMA
AGQEABd9BAB0AAB0AAB8AgBkBQCDAgBkBgB8BABkBwB8AwCDAAJkCACDAgBkBgB8BABkCQBkCgCD A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kZXIoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5 X2NoYW5nZXMJAAAAX2dldGF0dHJfcwUAAABvcmRlcnMMAAAAcHJldmlvdXNfdGFncwoAAABleHBh
dGhvbilzFgAAAE9yZGVyX2J1aWxkUGFja2luZ0xpc3QBAAAAcxIAAAAPAhYBHAEuAxIBDQEcAQ0B bmRfdGFncwsAAABhY3RpdmF0ZV9rd3MRAAAAb3JkZXJfcG9ydGFsX3R5cGVzEAAAAGRlbGl2ZXJ5
IgIoAQAAAHMWAAAAT3JkZXJfYnVpbGRQYWNraW5nTGlzdCgBAAAAcxYAAABPcmRlcl9idWlsZFBh X2J1aWxkZXIoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzFgAAAE9yZGVyX2J1aWxkUGFj
Y2tpbmdMaXN0KAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcwgAAAA8bW9kdWxlPgEAAABz a2luZ0xpc3QBAAAAcxQAAAAPAhYBFgEeAS4DEgENARwBDQEiAigBAAAAcxYAAABPcmRlcl9idWls
AAAAAA==</string> </value> ZFBhY2tpbmdMaXN0KAEAAABzFgAAAE9yZGVyX2J1aWxkUGFja2luZ0xpc3QoAAAAACgAAAAAcw8A
AABTY3JpcHQgKFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
</item> </item>
<item> <item>
<key> <string>_dav_writelocks</string> </key> <key> <string>_dav_writelocks</string> </key>
...@@ -149,6 +151,7 @@ AAAAAA==</string> </value> ...@@ -149,6 +151,7 @@ AAAAAA==</string> </value>
<string>order</string> <string>order</string>
<string>previous_tag</string> <string>previous_tag</string>
<string>expand_tag</string> <string>expand_tag</string>
<string>activate_kw</string>
<string>order_portal_type</string> <string>order_portal_type</string>
<string>delivery_builder</string> <string>delivery_builder</string>
</tuple> </tuple>
......
...@@ -69,22 +69,24 @@ ...@@ -69,22 +69,24 @@
<value> <string>order = state_change.object\n <value> <string>order = state_change.object\n
\n \n
tag = order.getPath() + \'_firstUpdateAppliedRule\'\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> </string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAUAAAAGAAAASwAA <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAYAAAAGAAAASwAA
AHNXAAAAdAAAfAAAZAEAgwIAfQMAdAAAfAMAZAIAgwIAgwAAZAMAF30EAHQAAHQAAHwDAGQEAIMC AHNvAAAAdAAAfAAAZAEAgwIAfQMAdAAAfAMAZAIAgwIAgwAAZAMAF30EAGgAAARkBAB8BAADPARk
AGQFAHwEAIMAAWQGAIMCAGQFAHwEAGQHAGQIAIMAAgFkAABTKAkAAABOcwYAAABvYmplY3RzBwAA BQBkBgADPH0FAHQAAHQAAHwDAGQHAIMCAGQEAHwEAIMAAWQIAIMCAGQJAGQKAGQLAHwFAIMAAgFk
AGdldFBhdGhzFwAAAF9maXJzdFVwZGF0ZUFwcGxpZWRSdWxlcwgAAABhY3RpdmF0ZXMDAAAAdGFn AABTKAwAAABOcwYAAABvYmplY3RzBwAAAGdldFBhdGhzFwAAAF9maXJzdFVwZGF0ZUFwcGxpZWRS
cxEAAAB1cGRhdGVBcHBsaWVkUnVsZXMHAAAAcnVsZV9pZHMSAAAAZGVmYXVsdF9vcmRlcl9ydWxl dWxlcwMAAAB0YWdzCAAAAHByaW9yaXR5aQMAAABzCAAAAGFjdGl2YXRlcxEAAAB1cGRhdGVBcHBs
KAQAAABzCQAAAF9nZXRhdHRyX3MMAAAAc3RhdGVfY2hhbmdlcwUAAABvcmRlcnMDAAAAdGFnKAUA aWVkUnVsZXMHAAAAcnVsZV9pZHMSAAAAZGVmYXVsdF9vcmRlcl9ydWxlcwsAAABhY3RpdmF0ZV9r
AABzDAAAAHN0YXRlX2NoYW5nZXMCAAAAa3dzCQAAAF9nZXRhdHRyX3MFAAAAb3JkZXJzAwAAAHRh dygFAAAAcwkAAABfZ2V0YXR0cl9zDAAAAHN0YXRlX2NoYW5nZXMFAAAAb3JkZXJzAwAAAHRhZ3ML
ZygAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMVAAAAT3JkZXJfY3JlYXRlT3JkZXJSdWxl AAAAYWN0aXZhdGVfa3coBgAAAHMMAAAAc3RhdGVfY2hhbmdlcwIAAABrd3MJAAAAX2dldGF0dHJf
AQAAAHMEAAAADwIcASgBAAAAcxUAAABPcmRlcl9jcmVhdGVPcmRlclJ1bGUoAQAAAHMVAAAAT3Jk cwUAAABvcmRlcnMDAAAAdGFncwsAAABhY3RpdmF0ZV9rdygAAAAAKAAAAABzDwAAAFNjcmlwdCAo
ZXJfY3JlYXRlT3JkZXJSdWxlKAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcwgAAAA8bW9k UHl0aG9uKXMVAAAAT3JkZXJfY3JlYXRlT3JkZXJSdWxlAQAAAHMGAAAADwIWAR4BKAEAAABzFQAA
dWxlPgEAAABzAAAAAA==</string> </value> AE9yZGVyX2NyZWF0ZU9yZGVyUnVsZSgBAAAAcxUAAABPcmRlcl9jcmVhdGVPcmRlclJ1bGUoAAAA
ACgAAAAAcw8AAABTY3JpcHQgKFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
...@@ -123,6 +125,7 @@ dWxlPgEAAABzAAAAAA==</string> </value> ...@@ -123,6 +125,7 @@ dWxlPgEAAABzAAAAAA==</string> </value>
<string>_getattr_</string> <string>_getattr_</string>
<string>order</string> <string>order</string>
<string>tag</string> <string>tag</string>
<string>activate_kw</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