Commit ca64f6d2 authored by Jean-Paul Smets's avatar Jean-Paul Smets

added LOG


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1226 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c99ceada
...@@ -155,6 +155,7 @@ An order...""" ...@@ -155,6 +155,7 @@ An order..."""
# Otherwise, expand # Otherwise, expand
# Look up if existing applied rule # Look up if existing applied rule
my_applied_rule_list = self.getCausalityRelatedValueList(portal_type='Applied Rule') my_applied_rule_list = self.getCausalityRelatedValueList(portal_type='Applied Rule')
LOG('Order._createOrderRule,my_applied_rule_list',0,my_applied_rule_list)
if len(my_applied_rule_list) == 0: if len(my_applied_rule_list) == 0:
# Create a new applied order rule (portal_rules.order_rule) # Create a new applied order rule (portal_rules.order_rule)
portal_rules = getToolByName(self, 'portal_rules') portal_rules = getToolByName(self, 'portal_rules')
...@@ -176,6 +177,7 @@ An order...""" ...@@ -176,6 +177,7 @@ An order..."""
# We are now certain we have a single applied rule # We are now certain we have a single applied rule
# It is time to expand it # It is time to expand it
LOG('Order._createOrderRule,my_applied_rule.getPhysicalPath()',0,my_applied_rule.getPhysicalPath())
self.activate().expand(my_applied_rule.getId()) self.activate().expand(my_applied_rule.getId())
security.declareProtected(Permissions.ModifyPortalContent, 'autoPlan') security.declareProtected(Permissions.ModifyPortalContent, 'autoPlan')
...@@ -220,9 +222,12 @@ An order...""" ...@@ -220,9 +222,12 @@ An order..."""
Confirm is still not creating deliveries XXX - check activities seriously to make sure Confirm is still not creating deliveries XXX - check activities seriously to make sure
they are not flushed in case of error they are not flushed in case of error
""" """
LOG('Order._confirm starting... on',0,self.getPhysicalPath())
self._createOrderRule() self._createOrderRule()
# At confirm stage, we create deliveries for this order # At confirm stage, we create deliveries for this order
LOG('Order._confirm finished ._createOrderRule... on',0,self.getPhysicalPath())
self.activate(priority=4).buildDeliveryList() self.activate(priority=4).buildDeliveryList()
LOG('Order._confirm finished activate of buildDeliveryList... on',0,self.getPhysicalPath())
confirm = WorkflowMethod(_confirm, 'confirm') confirm = WorkflowMethod(_confirm, 'confirm')
......
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