From f3622be34c62dfaf40869bb98f742de561708a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 25 Nov 2009 16:13:47 +0000 Subject: [PATCH] Also activate reindex with the usual tag git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30861 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Delivery_reindexRelatedSimulationMovement.xml | 9 +++++++-- bt5/erp5_base/bt/revision | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_simulation_interaction_workflow/scripts/Delivery_reindexRelatedSimulationMovement.xml b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_simulation_interaction_workflow/scripts/Delivery_reindexRelatedSimulationMovement.xml index 34c8f76ea9..bcbbb1f4d1 100644 --- a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_simulation_interaction_workflow/scripts/Delivery_reindexRelatedSimulationMovement.xml +++ b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/delivery_simulation_interaction_workflow/scripts/Delivery_reindexRelatedSimulationMovement.xml @@ -67,11 +67,14 @@ ...\n \n This script reindex simulation movements in (1), so that delivery builder select movement in (2)\n -with an up to date simulation state.\n +with an up to date simulation state. We reindex simulation movements with the tag _updateAppliedRule,\n +because that delivery builder builds after that tag.\n """\n \n delivery = state_change[\'object\']\n -delivery.applyToDeliveryRelatedMovement(method_id=\'recursiveReindexObject\')\n +tag = \'%s_updateAppliedRule\' % delivery.getPath()\n +delivery.applyToDeliveryRelatedMovement(method_id=\'recursiveReindexObject\',\n + activate_kw=dict(tag=tag))\n </string> </value> </item> <item> @@ -112,6 +115,8 @@ delivery.applyToDeliveryRelatedMovement(method_id=\'recursiveReindexObject\')\n <string>_getitem_</string> <string>delivery</string> <string>_getattr_</string> + <string>tag</string> + <string>dict</string> </tuple> </value> </item> diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision index 4aeea8c347..f874bfc9fc 100644 --- a/bt5/erp5_base/bt/revision +++ b/bt5/erp5_base/bt/revision @@ -1 +1 @@ -650 \ No newline at end of file +651 \ No newline at end of file -- 2.30.9