Commit 740bb3b6 authored by Fabien Morin's avatar Fabien Morin

add activity=SQLQueue parameter to activate method. This permit to execute the...

add activity=SQLQueue parameter to activate method. This permit to execute the activity as many times as they are called. (before, if it was called two time at the same time, only one activity was executed, now two).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25547 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c89c9417
...@@ -122,13 +122,16 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n ...@@ -122,13 +122,16 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n
\n \n
tag = \'invoice_transaction_build_%s\' % delivery.getRelativeUrl()\n tag = \'invoice_transaction_build_%s\' % delivery.getRelativeUrl()\n
builder.activate(\n builder.activate(\n
activity=\'SQLQueue\',\n
after_method_id=method_id_list,\n after_method_id=method_id_list,\n
tag=tag,\n tag=tag,\n
activate_kw=dict(tag=tag)).build(activate_kw=dict(tag=tag),\n activate_kw=dict(tag=tag)).build(activate_kw=dict(tag=tag),\n
explanation_uid=explanation_uid_list)\n explanation_uid=explanation_uid_list)\n
\n \n
# build related payment transactions\n # build related payment transactions\n
portal_deliveries.payment_transaction_builder.activate(after_method_id=method_id_list).build(explanation_uid=explanation_uid_list)\n portal_deliveries.payment_transaction_builder.activate(\n
activity=\'SQLQueue\',\n
after_method_id=method_id_list).build(explanation_uid=explanation_uid_list)\n
\n \n
# set the object in building state.\n # set the object in building state.\n
delivery.startBuilding()\n delivery.startBuilding()\n
......
865 866
\ No newline at end of file \ No newline at end of file
...@@ -69,6 +69,7 @@ if packing_list.getPortalType() == \'Purchase Packing List\':\n ...@@ -69,6 +69,7 @@ if packing_list.getPortalType() == \'Purchase Packing List\':\n
invoice_line_builder = getattr(delivery_tool, \'purchase_invoice_builder\', None)\n invoice_line_builder = getattr(delivery_tool, \'purchase_invoice_builder\', None)\n
if invoice_line_builder is not None:\n if invoice_line_builder is not None:\n
invoice_line_builder.activate(\n invoice_line_builder.activate(\n
activity=\'SQLQueue\',\n
tag=tag,\n tag=tag,\n
after_method_id = [ \'expand\', \n after_method_id = [ \'expand\', \n
\'recursiveImmediateReindexObject\',\n \'recursiveImmediateReindexObject\',\n
...@@ -81,6 +82,7 @@ if packing_list.getPortalType() == \'Purchase Packing List\':\n ...@@ -81,6 +82,7 @@ if packing_list.getPortalType() == \'Purchase Packing List\':\n
invoice_tax_builder = getattr(delivery_tool, \'purchase_invoice_tax_builder\', None)\n invoice_tax_builder = getattr(delivery_tool, \'purchase_invoice_tax_builder\', None)\n
if invoice_tax_builder is not None:\n if invoice_tax_builder is not None:\n
invoice_tax_builder.activate(\n invoice_tax_builder.activate(\n
activity=\'SQLQueue\',\n
tag=tax_tag,\n tag=tax_tag,\n
after_tag=tag,\n after_tag=tag,\n
after_method_id = [ \'expand\', \n after_method_id = [ \'expand\', \n
......
...@@ -69,6 +69,7 @@ if packing_list.getPortalType() == \'Sale Packing List\':\n ...@@ -69,6 +69,7 @@ if packing_list.getPortalType() == \'Sale Packing List\':\n
invoice_line_builder = getattr(delivery_tool, \'sale_invoice_builder\', None)\n invoice_line_builder = getattr(delivery_tool, \'sale_invoice_builder\', None)\n
if invoice_line_builder is not None:\n if invoice_line_builder is not None:\n
invoice_line_builder.activate(\n invoice_line_builder.activate(\n
activity=\'SQLQueue\',\n
tag=tag,\n tag=tag,\n
after_method_id = [ \'expand\', \n after_method_id = [ \'expand\', \n
\'recursiveImmediateReindexObject\',\n \'recursiveImmediateReindexObject\',\n
...@@ -81,6 +82,7 @@ if packing_list.getPortalType() == \'Sale Packing List\':\n ...@@ -81,6 +82,7 @@ if packing_list.getPortalType() == \'Sale Packing List\':\n
invoice_tax_builder = getattr(delivery_tool, \'sale_invoice_tax_builder\', None)\n invoice_tax_builder = getattr(delivery_tool, \'sale_invoice_tax_builder\', None)\n
if invoice_tax_builder is not None:\n if invoice_tax_builder is not None:\n
invoice_tax_builder.activate(\n invoice_tax_builder.activate(\n
activity=\'SQLQueue\',\n
tag=tax_tag,\n tag=tax_tag,\n
after_tag=tag,\n after_tag=tag,\n
after_method_id = [ \'expand\', \n after_method_id = [ \'expand\', \n
......
594 595
\ 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