Commit 84618194 authored by Yoshinori Okuji's avatar Yoshinori Okuji

2010-09-17 yo

* Use BusinessPath_build as the common way of invoking builders.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38445 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 045bf494
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -53,28 +50,12 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>from DateTime import DateTime\n
\n
now = DateTime().timeTime()\n
module = context.getPortalObject().business_process_module\n
<value> <string>module = context.getPortalObject().business_process_module\n
business_process = module.test_bp\n
invoice_business_path = business_process.invoice\n
invoice_builder = invoice_business_path.getDeliveryBuilderValue()\n
invoice_business_path.BusinessPath_build()\n
tax_business_path = business_process.tax\n
tax_builder = tax_business_path.getDeliveryBuilderValue()\n
\n
# Make sure that multiple builds would not run in parallel.\n
invoice_serialization_tag = \'test_invoice_build\'\n
invoice_tag = \'%s%f\' % (invoice_serialization_tag, now)\n
after_invoice_tag = \'after_test_invoice_build\'\n
invoice_builder.activate(serialization_tag=invoice_serialization_tag,\n
tag=invoice_tag, after_tag=after_invoice_tag) \\\n
.build(activate_kw=dict(tag=after_invoice_tag))\n
\n
# We do not need to serialize this one, because the tax builder may not create\n
# any new delivery.\n
# XXX the after_invoice_tag is global, so this build may wait too long.\n
tax_builder.activate(after_tag=(invoice_tag, after_invoice_tag)).build()\n
tax_business_path.BusinessPath_build()\n
</string> </value>
</item>
<item>
......@@ -112,20 +93,12 @@ tax_builder.activate(after_tag=(invoice_tag, after_invoice_tag)).build()\n
<value>
<tuple>
<string>kw</string>
<string>DateTime</string>
<string>_getattr_</string>
<string>now</string>
<string>context</string>
<string>module</string>
<string>business_process</string>
<string>invoice_business_path</string>
<string>invoice_builder</string>
<string>tax_business_path</string>
<string>tax_builder</string>
<string>invoice_serialization_tag</string>
<string>invoice_tag</string>
<string>after_invoice_tag</string>
<string>dict</string>
</tuple>
</value>
</item>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -55,14 +52,7 @@
<key> <string>_body</string> </key>
<value> <string>module = context.getPortalObject().business_process_module\n
business_path = module.test_bp.shipping\n
delivery_builder = business_path.getDeliveryBuilderValue()\n
\n
# Make sure that multiple builds would not run in parallel.\n
serialization_tag = \'test_shipping_build\'\n
tag = \'after_test_shipping_build\'\n
activate_kw = dict(tag=tag)\n
delivery_builder.activate(serialization_tag=serialization_tag, after_tag=tag) \\\n
.build(activate_kw=activate_kw)\n
business_path.BusinessPath_build()\n
</string> </value>
</item>
<item>
......@@ -104,11 +94,6 @@ delivery_builder.activate(serialization_tag=serialization_tag, after_tag=tag) \\
<string>context</string>
<string>module</string>
<string>business_path</string>
<string>delivery_builder</string>
<string>serialization_tag</string>
<string>tag</string>
<string>dict</string>
<string>activate_kw</string>
</tuple>
</value>
</item>
......
2010-09-17 yo
* Use BusinessPath_build as the common way of invoking builders.
2010-08-09 yo
* Forgot to rename the id of the Business Path for tax.
* Add SaleInvoice_getRuleReference to just return None.
......
15
\ No newline at end of file
18
\ 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