[Erp5-report] r7074 - /erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/deliv...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu May 4 01:15:39 CEST 2006
Author: jerome
Date: Thu May 4 01:15:36 2006
New Revision: 7074
URL: http://svn.erp5.org?rev=7074&view=rev
Log:
Use tags for activate updateAppliedRule
Modified:
erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/delivery_edit_workflow/scripts/Delivery_UpdateSimulation.xml
Modified: erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/delivery_edit_workflow/scripts/Delivery_UpdateSimulation.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/delivery_edit_workflow/scripts/Delivery_UpdateSimulation.xml?rev=7074&r1=7073&r2=7074&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/delivery_edit_workflow/scripts/Delivery_UpdateSimulation.xml (original)
+++ erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/delivery_edit_workflow/scripts/Delivery_UpdateSimulation.xml Thu May 4 01:15:36 2006
@@ -90,12 +90,19 @@
\'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 @@
<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>
More information about the Erp5-report
mailing list