Commit 63d43a82 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

we need to invoke build() activities according to the desired order of builders.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30231 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b82ec305
......@@ -71,15 +71,21 @@ else:\n
order.portal_deliveries.production_packing_list_builder\n
]\n
\n
previous_tag = order.getPath() + \'_firstUpdateAppliedRule\'\n
expand_tag = order.getPath() + \'_expand\'\n
order_path = order.getPath()\n
previous_tag = order_path + \'_firstUpdateAppliedRule\'\n
expand_tag = order_path + \'_expand\'\n
activate_kw = {\'tag\':expand_tag, \'priority\':3}\n
order.activate(tag=expand_tag, after_tag=previous_tag).updateAppliedRule(rule_reuference=rule_reference, activate_kw=activate_kw)\n
\n
for builder in builder_list:\n
builder.activate(\n
for i in xrange(len(builder_list)):\n
if i > 0:\n
after_tag = [expand_tag, \'%s_builder_%s\' % (order_path, i-1)]\n
else:\n
after_tag = expand_tag\n
builder_list[i].activate(\n
activity=\'SQLQueue\',\n
after_tag=expand_tag,\n
after_tag=after_tag,\n
tag=\'%s_builder_%s\' % (order_path, i),\n
priority=3).build(explanation_uid=order.getUid(),\n
activate_kw=activate_kw)\n
</string> </value>
......@@ -129,10 +135,14 @@ for builder in builder_list:\n
<string>builder_list</string>
<string>_getiter_</string>
<string>path</string>
<string>order_path</string>
<string>previous_tag</string>
<string>expand_tag</string>
<string>activate_kw</string>
<string>builder</string>
<string>xrange</string>
<string>len</string>
<string>i</string>
<string>after_tag</string>
</tuple>
</value>
</item>
......
408
\ No newline at end of file
409
\ 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