Commit 4fafba85 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

wrap _processDeliveryGroup with UnrestrictedMethod same as r.23976.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25510 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bb0ba747
...@@ -307,7 +307,7 @@ class OrderBuilder(XMLObject, Amount, Predicate): ...@@ -307,7 +307,7 @@ class OrderBuilder(XMLObject, Amount, Predicate):
# We do not want to update the same object more than twice in one # We do not want to update the same object more than twice in one
# _deliveryGroupProcessing(). # _deliveryGroupProcessing().
self._resetUpdated() self._resetUpdated()
delivery_list = self._processDeliveryGroup( delivery_list = self._unrestrictedProcessDeliveryGroup(
delivery_module, delivery_module,
movement_group_node, movement_group_node,
self.getDeliveryMovementGroupList(), self.getDeliveryMovementGroupList(),
...@@ -315,12 +315,18 @@ class OrderBuilder(XMLObject, Amount, Predicate): ...@@ -315,12 +315,18 @@ class OrderBuilder(XMLObject, Amount, Predicate):
**kw) **kw)
return delivery_list return delivery_list
def _unrestrictedProcessDeliveryGroup(self, *args, **kw):
"""This method wraps _processDeliveryGroup with UnrestrictedMethod."""
return UnrestrictedMethod(self._processDeliveryGroup)(*args, **kw)
def _processDeliveryGroup(self, delivery_module, movement_group_node, def _processDeliveryGroup(self, delivery_module, movement_group_node,
collect_order_list, movement_group_node_list=None, collect_order_list, movement_group_node_list=None,
delivery_to_update_list=None, delivery_to_update_list=None,
divergence_list=None, divergence_list=None,
activate_kw=None, force_update=0, **kw): activate_kw=None, force_update=0, **kw):
"""This method is wrapped by UnrestrictedMethod.""" """
Build delivery from a list of movement
"""
if movement_group_node_list is None: if movement_group_node_list is None:
movement_group_node_list = [] movement_group_node_list = []
if divergence_list is None: if divergence_list is None:
...@@ -769,6 +775,6 @@ class OrderBuilder(XMLObject, Amount, Predicate): ...@@ -769,6 +775,6 @@ class OrderBuilder(XMLObject, Amount, Predicate):
tv['builder_processed_list'] = {} tv['builder_processed_list'] = {}
# for backward compatibilities. # for backward compatibilities.
_deliveryGroupProcessing = _processDeliveryGroup _deliveryGroupProcessing = _unrestrictedProcessDeliveryGroup
_deliveryLineGroupProcessing = _processDeliveryLineGroup _deliveryLineGroupProcessing = _processDeliveryLineGroup
_deliveryCellGroupProcessing = _processDeliveryCellGroup _deliveryCellGroupProcessing = _processDeliveryCellGroup
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