Commit 1c71f517 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

wait for '(delivery_path)_expand' tag to prevent 'Delivery xxx has more than...

wait for '(delivery_path)_expand' tag to prevent 'Delivery xxx has more than one applied rule.' problem.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27338 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5419fbba
...@@ -55,8 +55,10 @@ ...@@ -55,8 +55,10 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>delivery = state_change[\'object\'].getExplanationValue()\n <value> <string>delivery = state_change[\'object\'].getExplanationValue()\n
\n \n
path_and_method_id = (delivery.getPath(), (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))\n delivery_path = delivery.getPath()\n
expand_tag = delivery.getPath() + \'_updateAppliedRule\'\n path_and_method_id = (delivery_path, (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))\n
afer_tag = delivery_path + \'_expand\'\n
tag = delivery_path + \'_updateAppliedRule\'\n
\n \n
priority = 3\n priority = 3\n
\n \n
...@@ -66,7 +68,8 @@ activate_kw = { \n ...@@ -66,7 +68,8 @@ activate_kw = { \n
}\n }\n
delivery.activate(\n delivery.activate(\n
after_path_and_method_id=path_and_method_id,\n after_path_and_method_id=path_and_method_id,\n
tag=expand_tag,\n after_tag=after_tag,\n
tag=tag,\n
priority=priority,\n priority=priority,\n
).Delivery_updateAppliedRule(activate_kw=activate_kw)\n ).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
</string> </value> </string> </value>
...@@ -109,10 +112,14 @@ delivery.activate(\n ...@@ -109,10 +112,14 @@ delivery.activate(\n
<string>_getattr_</string> <string>_getattr_</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>delivery</string> <string>delivery</string>
<string>delivery_path</string>
<string>path_and_method_id</string> <string>path_and_method_id</string>
<string>expand_tag</string> <string>afer_tag</string>
<string>tag</string>
<string>priority</string> <string>priority</string>
<string>expand_tag</string>
<string>activate_kw</string> <string>activate_kw</string>
<string>after_tag</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -53,10 +53,12 @@ ...@@ -53,10 +53,12 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>delivery = state_change[\'object\']\n <value> <string>delivery = state_change[\'object\'].getExplanationValue()\n
\n \n
path_and_method_id = (delivery.getPath(), (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))\n delivery_path = delivery.getPath()\n
expand_tag = delivery.getPath() + \'_updateAppliedRule\'\n path_and_method_id = (delivery_path, (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))\n
afer_tag = delivery_path + \'_expand\'\n
tag = delivery_path + \'_updateAppliedRule\'\n
\n \n
priority = 3\n priority = 3\n
\n \n
...@@ -66,7 +68,8 @@ activate_kw = { \n ...@@ -66,7 +68,8 @@ activate_kw = { \n
}\n }\n
delivery.activate(\n delivery.activate(\n
after_path_and_method_id=path_and_method_id,\n after_path_and_method_id=path_and_method_id,\n
tag=expand_tag,\n after_tag=after_tag,\n
tag=tag,\n
priority=priority,\n priority=priority,\n
).Delivery_updateAppliedRule(activate_kw=activate_kw)\n ).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
</string> </value> </string> </value>
...@@ -106,13 +109,17 @@ delivery.activate(\n ...@@ -106,13 +109,17 @@ delivery.activate(\n
<value> <value>
<tuple> <tuple>
<string>state_change</string> <string>state_change</string>
<string>_getattr_</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>delivery</string> <string>delivery</string>
<string>_getattr_</string> <string>delivery_path</string>
<string>path_and_method_id</string> <string>path_and_method_id</string>
<string>expand_tag</string> <string>afer_tag</string>
<string>tag</string>
<string>priority</string> <string>priority</string>
<string>expand_tag</string>
<string>activate_kw</string> <string>activate_kw</string>
<string>after_tag</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
598 599
\ No newline at end of file \ 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