Commit f75f6e81 authored by Łukasz Nowak's avatar Łukasz Nowak

Simplify.

Let the cluster take decision about how activities will be running.
parent fd811e9d
...@@ -67,17 +67,16 @@ kw.update(\n ...@@ -67,17 +67,16 @@ kw.update(\n
**{\'movement.destination_uid\': person_uid}\n **{\'movement.destination_uid\': person_uid}\n
)\n )\n
\n \n
tag = \'Wrapper_%s\' % context.getUid()\n for i in range(0, 4):\n
for i in range(1, 4):\n
movement_list = context.portal_catalog(uid=\'>%s\' % uid, **kw)\n movement_list = context.portal_catalog(uid=\'>%s\' % uid, **kw)\n
if len(movement_list) > 0:\n if len(movement_list) > 0:\n
context.activate(activity=\'SQLQueue\', tag=tag).WrapperVifibSaleInvoiceBuilder_buildAndPlan(\'portal_deliveries/vifib_sale_invoice_builder\', [q.getRelativeUrl() for q in movement_list])\n context.activate(activity=\'SQLQueue\').WrapperVifibSaleInvoiceBuilder_buildAndPlan(\'portal_deliveries/vifib_sale_invoice_builder\', [q.getRelativeUrl() for q in movement_list])\n
uid = movement_list[-1].getUid()\n uid = movement_list[-1].getUid()\n
else:\n else:\n
break\n break\n
\n \n
if len(movement_list) > 0: \n if len(movement_list) > 0: \n
context.activate(after_tag=tag).Person_buildAndPlanInvoice(movement_list[-1].getUid())\n context.Person_buildAndPlanInvoice(movement_list[-1].getUid())\n
]]></string> </value> ]]></string> </value>
......
68 69
\ 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