From afd1669be91939d9003e12cfefd0f53f22b21b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 3 May 2006 23:15:36 +0000 Subject: [PATCH] Use tags for activate updateAppliedRule git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7074 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../scripts/Delivery_UpdateSimulation.xml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/delivery_edit_workflow/scripts/Delivery_UpdateSimulation.xml b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/delivery_edit_workflow/scripts/Delivery_UpdateSimulation.xml index a061eed7ea..fc3b60c35e 100644 --- a/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/delivery_edit_workflow/scripts/Delivery_UpdateSimulation.xml +++ b/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/delivery_edit_workflow/scripts/Delivery_UpdateSimulation.xml @@ -90,12 +90,19 @@ rule_by_ptype = {\n \'Purchase Packing List\' : \'default_delivery_rule\',\n }\n \n +PRIORITY = 3\n +previous_tag = delivery.getPath() + \'_firstUpdateAppliedRule\'\n +expand_tag = delivery.getPath() + \'_expand\'\n +activate_kw = { \'tag\' : expand_tag\n + , \'priority\': PRIORITY\n + }\n if rule_by_ptype.has_key(delivery_portal_type) : \n delivery.activate(\n - after_method_id = [ \'immediateReindexObject\',\n - \'recursiveImmediateReindexObject\',\n - \'expand\']\n - ).updateAppliedRule(rule_id = rule_by_ptype[delivery_portal_type])\n + after_tag=previous_tag,\n + tag = expand_tag,\n + priority=PRIORITY\n + ).updateAppliedRule(rule_id = rule_by_ptype[delivery_portal_type],\n + activate_kw=activate_kw)\n else : \n LOG("no rule_id for %s, don\'t know how to updateAppliedRule" % delivery_portal_type)\n \n @@ -148,6 +155,10 @@ LOG(\'END\')\n <string>portal</string> <string>LOG</string> <string>rule_by_ptype</string> + <string>PRIORITY</string> + <string>previous_tag</string> + <string>expand_tag</string> + <string>activate_kw</string> </tuple> </value> </item> -- 2.30.9