Commit bdfa6398 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* Improve activity dependencies for Delivery_updateAppliedRule, eg....

* Improve activity dependencies for Delivery_updateAppliedRule, eg. delivery.activate(tag='(path)_updateAppliedRule', after_tag='(path)_expand').Delivery_updateAppliedRule(activate_kw={'tag':'(path)_expand'})


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35555 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 56502e6a
...@@ -79,14 +79,15 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n ...@@ -79,14 +79,15 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n
if delivery_portal_type == \'Pay Sheet Transaction\':\n if delivery_portal_type == \'Pay Sheet Transaction\':\n
PRIORITY = 3\n PRIORITY = 3\n
pay_sheet = delivery\n pay_sheet = delivery\n
previous_tag = pay_sheet.getPath() + \'_firstUpdateAppliedRule\'\n path = pay_sheet.getPath()\n
expand_tag = pay_sheet.getPath() + \'_expand\'\n tag = \'%s_updateAppliedRule\' % path\n
expand_tag = \'%s_expand\' % path\n
activate_kw = { \'tag\' : expand_tag\n activate_kw = { \'tag\' : expand_tag\n
, \'priority\': PRIORITY\n , \'priority\': PRIORITY\n
}\n }\n
\n \n
pay_sheet.activate( tag = expand_tag\n pay_sheet.activate( tag = tag\n
, after_tag = previous_tag\n , after_tag = expand_tag\n
, priority = PRIORITY\n , priority = PRIORITY\n
).updateAppliedRule( rule_reference = \'default_invoice_rule\'\n ).updateAppliedRule( rule_reference = \'default_invoice_rule\'\n
, activate_kw = activate_kw\n , activate_kw = activate_kw\n
...@@ -119,10 +120,10 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n ...@@ -119,10 +120,10 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n
build_trade_model_tag = \'invoice_transaction_build_trade_model_%s\' % \\\n build_trade_model_tag = \'invoice_transaction_build_trade_model_%s\' % \\\n
delivery.getRelativeUrl()\n delivery.getRelativeUrl()\n
build_accounting_tag = \'invoice_transaction_build_accounting_%s\' % delivery.getRelativeUrl()\n build_accounting_tag = \'invoice_transaction_build_accounting_%s\' % delivery.getRelativeUrl()\n
update_applied_rule_tag = \'%s_updateAppliedRule\' % delivery.getPath()\n expand_tag = \'%s_expand\' % delivery.getPath()\n
builder.activate(\n builder.activate(\n
activity=\'SQLQueue\',\n activity=\'SQLQueue\',\n
after_tag=(update_applied_rule_tag,\n after_tag=(expand_tag,\n
build_trade_model_tag,),\n build_trade_model_tag,),\n
tag=build_accounting_tag,\n tag=build_accounting_tag,\n
activate_kw=dict(tag=build_accounting_tag)).build(\n activate_kw=dict(tag=build_accounting_tag)).build(\n
...@@ -133,7 +134,7 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n ...@@ -133,7 +134,7 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n
portal_deliveries.payment_transaction_builder.activate(\n portal_deliveries.payment_transaction_builder.activate(\n
activity=\'SQLQueue\',\n activity=\'SQLQueue\',\n
after_tag=( build_trade_model_tag,\n after_tag=( build_trade_model_tag,\n
update_applied_rule_tag,\n expand_tag,\n
build_accounting_tag, ),\n build_accounting_tag, ),\n
).build(\n ).build(\n
explanation_uid=explanation_uid_list)\n explanation_uid=explanation_uid_list)\n
...@@ -194,7 +195,8 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n ...@@ -194,7 +195,8 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n
<string>builder</string> <string>builder</string>
<string>PRIORITY</string> <string>PRIORITY</string>
<string>pay_sheet</string> <string>pay_sheet</string>
<string>previous_tag</string> <string>path</string>
<string>tag</string>
<string>expand_tag</string> <string>expand_tag</string>
<string>activate_kw</string> <string>activate_kw</string>
<string>explanation_uid_list</string> <string>explanation_uid_list</string>
...@@ -202,7 +204,6 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n ...@@ -202,7 +204,6 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n
<string>order</string> <string>order</string>
<string>build_trade_model_tag</string> <string>build_trade_model_tag</string>
<string>build_accounting_tag</string> <string>build_accounting_tag</string>
<string>update_applied_rule_tag</string>
<string>dict</string> <string>dict</string>
</tuple> </tuple>
</value> </value>
......
2010-05-24 kazuhiko
* Improve activity dependencies for Delivery_updateAppliedRule, eg. delivery.activate(tag='(path)_updateAppliedRule', after_tag='(path)_expand').Delivery_updateAppliedRule(activate_kw={'tag':'(path)_expand'})
2010-05-05 Jérome 2010-05-05 Jérome
* Add an action to add create an initial balance transaction, from an accounting period. * Add an action to add create an initial balance transaction, from an accounting period.
......
1213 1214
\ No newline at end of file \ No newline at end of file
...@@ -72,7 +72,7 @@ because that delivery builder builds after that tag.\n ...@@ -72,7 +72,7 @@ because that delivery builder builds after that tag.\n
"""\n """\n
\n \n
delivery = state_change[\'object\']\n delivery = state_change[\'object\']\n
tag = \'%s_updateAppliedRule\' % delivery.getPath()\n tag = \'%s_expand\' % delivery.getPath()\n
delivery.applyToDeliveryRelatedMovement(method_id=\'recursiveReindexObject\',\n delivery.applyToDeliveryRelatedMovement(method_id=\'recursiveReindexObject\',\n
activate_kw=dict(tag=tag))\n activate_kw=dict(tag=tag))\n
</string> </value> </string> </value>
......
2010-05-24 kazuhiko
* Improve activity dependencies for Delivery_updateAppliedRule, eg. delivery.activate(tag='(path)_updateAppliedRule', after_tag='(path)_expand').Delivery_updateAppliedRule(activate_kw={'tag':'(path)_expand'})
2010-05-20 kazuhiko 2010-05-20 kazuhiko
* Add checkboxes for force_update property of Property Movement Group and Category Movement Group. * Add checkboxes for force_update property of Property Movement Group and Category Movement Group.
......
749 750
\ No newline at end of file \ No newline at end of file
...@@ -57,27 +57,31 @@ ...@@ -57,27 +57,31 @@
\n \n
activate_kw = {}\n activate_kw = {}\n
related_order = packing_list.getCausalityValue()\n related_order = packing_list.getCausalityValue()\n
after_tag_list = []\n path = packing_list.getPath()\n
tag = \'%s_updateAppliedRule\' % path\n
expand_tag = \'%s_expand\' % path\n
activate_kw = {\'tag\':expand_tag,\'priority\':3}\n
after_tag_list = [expand_tag]\n
if related_order is not None:\n if related_order is not None:\n
after_tag_list.append(related_order.getPath() + \'_firstUpdateAppliedRule\')\n # XXX is it really required?\n
after_tag_list.append(related_order.getPath() + \'_expand\')\n after_tag_list.append(\'%s_expand\' % related_order.getPath())\n
tag = packing_list.getPath()+\'_expand\'\n
activate_kw = {\'tag\':tag,\'priority\':3}\n
\n \n
packing_list.activate(after_tag=after_tag_list,\n packing_list.activate(after_tag=after_tag_list,\n
tag=tag,\n tag=tag,\n
priority=3).updateAppliedRule(rule_reference=packing_list.getRuleReference(),\n priority=3).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
activate_kw=activate_kw)\n
\n \n
\n \n
# Make sure to reindex related simulation movement if we are already\n # Make sure to reindex related simulation movement if we are already\n
# simulated, call reindexObject, not immediateReindexObject so that\n # simulated, call reindexObject, not immediateReindexObject so that\n
# catalogObjectList will be called with many objects\n # catalogObjectList will be called with many objects\n
# XXX is it really required?\n
packing_list.activate(after_tag=after_tag_list,\n packing_list.activate(after_tag=after_tag_list,\n
tag=tag,\n tag=tag,\n
priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n
\n \n
packing_list.startBuilding()\n if packing_list.getCausalityState() == \'draft\':\n
packing_list.startBuilding()\n
# XXX is it really required?\n
packing_list.activate(\n packing_list.activate(\n
after_tag = tag,\n after_tag = tag,\n
).updateCausalityState()\n ).updateCausalityState()\n
...@@ -124,9 +128,11 @@ packing_list.activate(\n ...@@ -124,9 +128,11 @@ packing_list.activate(\n
<string>activate_kw</string> <string>activate_kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>related_order</string> <string>related_order</string>
<string>path</string>
<string>tag</string>
<string>expand_tag</string>
<string>after_tag_list</string> <string>after_tag_list</string>
<string>None</string> <string>None</string>
<string>tag</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
2010-05-24 kazuhiko
* Improve activity dependencies for Delivery_updateAppliedRule, eg. delivery.activate(tag='(path)_updateAppliedRule', after_tag='(path)_expand').Delivery_updateAppliedRule(activate_kw={'tag':'(path)_expand'})
2009-07-02 luke 2009-07-02 luke
* change purpose of this business template * change purpose of this business template
......
253 254
\ No newline at end of file \ No newline at end of file
...@@ -57,24 +57,31 @@ ...@@ -57,24 +57,31 @@
\n \n
activate_kw = {}\n activate_kw = {}\n
related_order = packing_list.getCausalityValue()\n related_order = packing_list.getCausalityValue()\n
after_tag_list = []\n path = packing_list.getPath()\n
tag = \'%s_updateAppliedRule\' % path\n
expand_tag = \'%s_expand\' % path\n
activate_kw = {\'tag\':expand_tag,\'priority\':3}\n
after_tag_list = [expand_tag]\n
if related_order is not None:\n if related_order is not None:\n
after_tag_list.append(related_order.getPath() + \'_firstUpdateAppliedRule\')\n # XXX is it really required?\n
after_tag_list.append(related_order.getPath() + \'_expand\')\n after_tag_list.append(\'%s_expand\' % related_order.getPath())\n
tag = packing_list.getPath()+\'_expand\'\n
activate_kw = {\'tag\':tag,\'priority\':3}\n
\n \n
packing_list.activate(after_tag=after_tag_list,tag=tag,\n packing_list.activate(after_tag=after_tag_list,\n
priority=3).updateAppliedRule(rule_reference=\'default_delivery_rule\',activate_kw=activate_kw)\n tag=tag,\n
priority=3).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
\n \n
\n \n
# Make sure to reindex related simulation movement if we are already\n # Make sure to reindex related simulation movement if we are already\n
# simulated, call reindexObject, not immediateReindexObject so that\n # simulated, call reindexObject, not immediateReindexObject so that\n
# catalogObjectList will be called with many objects\n # catalogObjectList will be called with many objects\n
packing_list.activate(after_tag=after_tag_list,tag=tag,\n # XXX is it really required?\n
packing_list.activate(after_tag=after_tag_list,\n
tag=tag,\n
priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n
\n \n
packing_list.startBuilding()\n if packing_list.getCausalityState() == \'draft\':\n
packing_list.startBuilding()\n
# XXX is it really required?\n
packing_list.activate(\n packing_list.activate(\n
after_tag = tag,\n after_tag = tag,\n
).updateCausalityState()\n ).updateCausalityState()\n
...@@ -121,9 +128,11 @@ packing_list.activate(\n ...@@ -121,9 +128,11 @@ packing_list.activate(\n
<string>activate_kw</string> <string>activate_kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>related_order</string> <string>related_order</string>
<string>path</string>
<string>tag</string>
<string>expand_tag</string>
<string>after_tag_list</string> <string>after_tag_list</string>
<string>None</string> <string>None</string>
<string>tag</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
2010-05-24 kazuhiko
* Improve activity dependencies for Delivery_updateAppliedRule, eg. delivery.activate(tag='(path)_updateAppliedRule', after_tag='(path)_expand').Delivery_updateAppliedRule(activate_kw={'tag':'(path)_expand'})
2010-03-02 yusei 2010-03-02 yusei
* Remove short title. * Remove short title.
......
440 441
\ No newline at end of file \ No newline at end of file
...@@ -53,32 +53,35 @@ ...@@ -53,32 +53,35 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>LOG=lambda msg:context.log("PackingList_updateAppliedRule", msg)\n <value> <string>packing_list = state_change[\'object\']\n
LOG=lambda msg:\'DISABLED\'\n
\n
packing_list = state_change[\'object\']\n
\n
\n \n
activate_kw = {}\n activate_kw = {}\n
related_order = packing_list.getCausalityValue()\n related_order = packing_list.getCausalityValue()\n
after_tag_list = []\n path = packing_list.getPath()\n
tag = \'%s_updateAppliedRule\' % path\n
expand_tag = \'%s_expand\' % path\n
activate_kw = {\'tag\':expand_tag,\'priority\':3}\n
after_tag_list = [expand_tag]\n
if related_order is not None:\n if related_order is not None:\n
after_tag_list.append(related_order.getPath() + \'_firstUpdateAppliedRule\')\n # XXX is it really required?\n
after_tag_list.append(related_order.getPath() + \'_expand\')\n after_tag_list.append(\'%s_expand\' % related_order.getPath())\n
tag = packing_list.getPath()+\'_expand\'\n
activate_kw = {\'tag\':tag,\'priority\':3}\n
\n \n
packing_list.activate(after_tag=after_tag_list,tag=tag,\n packing_list.activate(after_tag=after_tag_list,\n
priority=3).updateAppliedRule(rule_reference=\'default_delivery_rule\', activate_kw=activate_kw)\n tag=tag,\n
priority=3).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
\n \n
\n \n
# Make sure to reindex related simulation movement if we are already\n # Make sure to reindex related simulation movement if we are already\n
# simulated, call reindexObject, not immediateReindexObject so that\n # simulated, call reindexObject, not immediateReindexObject so that\n
# catalogObjectList will be called with many objects\n # catalogObjectList will be called with many objects\n
packing_list.activate(after_tag=after_tag_list,tag=tag,\n # XXX is it really required?\n
packing_list.activate(after_tag=after_tag_list,\n
tag=tag,\n
priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n
\n \n
packing_list.startBuilding()\n if packing_list.getCausalityState() == \'draft\':\n
packing_list.startBuilding()\n
# XXX is it really required?\n
packing_list.activate(\n packing_list.activate(\n
after_tag = tag,\n after_tag = tag,\n
).updateCausalityState()\n ).updateCausalityState()\n
...@@ -120,15 +123,16 @@ packing_list.activate(\n ...@@ -120,15 +123,16 @@ packing_list.activate(\n
<tuple> <tuple>
<string>state_change</string> <string>state_change</string>
<string>kw</string> <string>kw</string>
<string>LOG</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>packing_list</string> <string>packing_list</string>
<string>activate_kw</string> <string>activate_kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>related_order</string> <string>related_order</string>
<string>path</string>
<string>tag</string>
<string>expand_tag</string>
<string>after_tag_list</string> <string>after_tag_list</string>
<string>None</string> <string>None</string>
<string>tag</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -55,10 +55,12 @@ ...@@ -55,10 +55,12 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>task = state_change[\'object\']\n <value> <string>task = state_change[\'object\']\n
\n \n
previous_tag = task.getPath() + \'_firstUpdateAppliedRule\'\n path = task.getPath()\n
expand_tag = task.getPath() + \'_expand\'\n tag = \'%s_updateAppliedRule\' % path\n
activate_kw = {\'tag\':expand_tag,\'priority\':3}\n expand_tag = \'%s_expand\' % path\n
task.activate(tag=expand_tag,after_tag=previous_tag).updateAppliedRule(rule_reference = \'default_order_rule\',activate_kw=activate_kw)\n activate_kw = {\'tag\':expand_tag, \'priority\':3}\n
\n
task.activate(tag=tag, after_tag=expand_tag).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
\n \n
delivery_builder = task.portal_deliveries.task_report_builder\n delivery_builder = task.portal_deliveries.task_report_builder\n
delivery_builder.activate(activity=\'SQLQueue\',after_tag=expand_tag).build(explanation_uid=task.getUid())\n delivery_builder.activate(activity=\'SQLQueue\',after_tag=expand_tag).build(explanation_uid=task.getUid())\n
...@@ -102,7 +104,8 @@ delivery_builder.activate(activity=\'SQLQueue\',after_tag=expand_tag).build(expl ...@@ -102,7 +104,8 @@ delivery_builder.activate(activity=\'SQLQueue\',after_tag=expand_tag).build(expl
<string>_getitem_</string> <string>_getitem_</string>
<string>task</string> <string>task</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>previous_tag</string> <string>path</string>
<string>tag</string>
<string>expand_tag</string> <string>expand_tag</string>
<string>activate_kw</string> <string>activate_kw</string>
<string>delivery_builder</string> <string>delivery_builder</string>
......
...@@ -55,9 +55,12 @@ ...@@ -55,9 +55,12 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>task = state_change[\'object\']\n <value> <string>task = state_change[\'object\']\n
\n \n
tag = task.getPath() + \'_firstUpdateAppliedRule\'\n path = task.getPath()\n
activate_kw = {\'tag\':tag,\'priority\':3}\n tag = \'%s_updateAppliedRule\' % path\n
task.activate(tag=tag).updateAppliedRule(rule_reference = \'default_order_rule\',activate_kw=activate_kw)\n expand_tag = \'%s_expand\' % path\n
activate_kw = {\'tag\':expand_tag, \'priority\':3}\n
\n
task.activate(tag=tag, after_tag=expand_tag).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -99,7 +102,9 @@ task.activate(tag=tag).updateAppliedRule(rule_reference = \'default_order_rule\' ...@@ -99,7 +102,9 @@ task.activate(tag=tag).updateAppliedRule(rule_reference = \'default_order_rule\'
<string>_getitem_</string> <string>_getitem_</string>
<string>task</string> <string>task</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>path</string>
<string>tag</string> <string>tag</string>
<string>expand_tag</string>
<string>activate_kw</string> <string>activate_kw</string>
</tuple> </tuple>
</value> </value>
......
2010-05-24 kazuhiko
* Improve activity dependencies for Delivery_updateAppliedRule, eg. delivery.activate(tag='(path)_updateAppliedRule', after_tag='(path)_expand').Delivery_updateAppliedRule(activate_kw={'tag':'(path)_expand'})
2010-04-09 kazuhiko 2010-04-09 kazuhiko
* Make it possible to sort/search on Project Module view. * Make it possible to sort/search on Project Module view.
* Allow Assignor to update validated Projects. * Allow Assignor to update validated Projects.
......
762 763
\ No newline at end of file \ No newline at end of file
...@@ -55,12 +55,12 @@ ...@@ -55,12 +55,12 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>order = state_change[\'object\']\n <value> <string>order = state_change[\'object\']\n
\n \n
previous_tag = order.getPath() + \'_firstUpdateAppliedRule\'\n path = order.getPath()\n
expand_tag = order.getPath() + \'_expand\'\n tag = \'%s_updateAppliedRule\' % path\n
activate_kw = {\'tag\':expand_tag,\'priority\':3}\n expand_tag = \'%s_expand\' % path\n
order.activate(tag=expand_tag, after_tag=previous_tag).updateAppliedRule(\n activate_kw = {\'tag\':expand_tag, \'priority\':3}\n
rule_reference=\'default_order_rule\', activate_kw=activate_kw)\n
\n \n
order.activate(tag=tag, after_tag=expand_tag).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
\n \n
order_portal_type = order.getPortalType()\n order_portal_type = order.getPortalType()\n
builder_dict = {\n builder_dict = {\n
...@@ -111,7 +111,8 @@ delivery_builder.activate(activity=\'SQLQueue\',after_tag=expand_tag).build(expl ...@@ -111,7 +111,8 @@ delivery_builder.activate(activity=\'SQLQueue\',after_tag=expand_tag).build(expl
<string>_getitem_</string> <string>_getitem_</string>
<string>order</string> <string>order</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>previous_tag</string> <string>path</string>
<string>tag</string>
<string>expand_tag</string> <string>expand_tag</string>
<string>activate_kw</string> <string>activate_kw</string>
<string>order_portal_type</string> <string>order_portal_type</string>
......
...@@ -55,10 +55,12 @@ ...@@ -55,10 +55,12 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>order = state_change[\'object\']\n <value> <string>order = state_change[\'object\']\n
\n \n
tag = order.getPath() + \'_firstUpdateAppliedRule\'\n path = order.getPath()\n
activate_kw = {\'tag\':tag,\'priority\':3}\n tag = \'%s_updateAppliedRule\' % path\n
order.activate(tag=tag).updateAppliedRule(rule_reference=\'default_order_rule\',\n expand_tag = \'%s_expand\' % path\n
activate_kw=activate_kw)\n activate_kw = {\'tag\':expand_tag, \'priority\':3}\n
\n
order.activate(tag=tag, after_tag=expand_tag).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -100,7 +102,9 @@ order.activate(tag=tag).updateAppliedRule(rule_reference=\'default_order_rule\', ...@@ -100,7 +102,9 @@ order.activate(tag=tag).updateAppliedRule(rule_reference=\'default_order_rule\',
<string>_getitem_</string> <string>_getitem_</string>
<string>order</string> <string>order</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>path</string>
<string>tag</string> <string>tag</string>
<string>expand_tag</string>
<string>activate_kw</string> <string>activate_kw</string>
</tuple> </tuple>
</value> </value>
......
...@@ -57,27 +57,31 @@ ...@@ -57,27 +57,31 @@
\n \n
activate_kw = {}\n activate_kw = {}\n
related_order = packing_list.getCausalityValue()\n related_order = packing_list.getCausalityValue()\n
after_tag_list = []\n path = packing_list.getPath()\n
tag = \'%s_updateAppliedRule\' % path\n
expand_tag = \'%s_expand\' % path\n
activate_kw = {\'tag\':expand_tag,\'priority\':3}\n
after_tag_list = [expand_tag]\n
if related_order is not None:\n if related_order is not None:\n
after_tag_list.append(related_order.getPath() + \'_firstUpdateAppliedRule\')\n # XXX is it really required?\n
after_tag_list.append(related_order.getPath() + \'_expand\')\n after_tag_list.append(\'%s_expand\' % related_order.getPath())\n
tag = packing_list.getPath()+\'_expand\'\n
activate_kw = {\'tag\':tag,\'priority\':3}\n
\n \n
packing_list.activate(after_tag=after_tag_list,\n packing_list.activate(after_tag=after_tag_list,\n
tag=tag,\n tag=tag,\n
priority=3).updateAppliedRule(rule_reference=\'default_delivery_rule\',\n priority=3).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
activate_kw=activate_kw)\n
\n \n
\n \n
# Make sure to reindex related simulation movement if we are already\n # Make sure to reindex related simulation movement if we are already\n
# simulated, call reindexObject, not immediateReindexObject so that\n # simulated, call reindexObject, not immediateReindexObject so that\n
# catalogObjectList will be called with many objects\n # catalogObjectList will be called with many objects\n
# XXX is it really required?\n
packing_list.activate(after_tag=after_tag_list,\n packing_list.activate(after_tag=after_tag_list,\n
tag=tag,\n tag=tag,\n
priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n priority=3).applyToDeliveryRelatedMovement(method_id=\'reindexObject\')\n
\n \n
packing_list.startBuilding()\n if packing_list.getCausalityState() == \'draft\':\n
packing_list.startBuilding()\n
# XXX is it really required?\n
packing_list.activate(\n packing_list.activate(\n
after_tag = tag,\n after_tag = tag,\n
).updateCausalityState()\n ).updateCausalityState()\n
...@@ -124,9 +128,11 @@ packing_list.activate(\n ...@@ -124,9 +128,11 @@ packing_list.activate(\n
<string>activate_kw</string> <string>activate_kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>related_order</string> <string>related_order</string>
<string>path</string>
<string>tag</string>
<string>expand_tag</string>
<string>after_tag_list</string> <string>after_tag_list</string>
<string>None</string> <string>None</string>
<string>tag</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
2010-05-24 kazuhiko
* Improve activity dependencies for Delivery_updateAppliedRule, eg. delivery.activate(tag='(path)_updateAppliedRule', after_tag='(path)_expand').Delivery_updateAppliedRule(activate_kw={'tag':'(path)_expand'})
2010-05-24 yusei 2010-05-24 yusei
* Update Movement_getUseItemList. Add an empty select option to the result. * Update Movement_getUseItemList. Add an empty select option to the result.
......
944 945
\ 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