Commit 4beb282c authored by Yusei Tahara's avatar Yusei Tahara

Wrap buildDeliveryList with UnrestrictedMethod.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23976 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0bfd733b
...@@ -273,11 +273,16 @@ class OrderBuilder(XMLObject, Amount, Predicate): ...@@ -273,11 +273,16 @@ class OrderBuilder(XMLObject, Amount, Predicate):
break break
return instance, property_dict return instance, property_dict
def buildDeliveryList(self, movement_group, delivery_relative_url_list=None, def buildDeliveryList(self, *args, **kw):
movement_list=None,**kw):
""" """
Build deliveries from a list of movements Build deliveries from a list of movements
""" """
buildDeliveryList = UnrestrictedMethod(self._buildDeliveryList)
return buildDeliveryList(*args, **kw)
def _buildDeliveryList(self, movement_group, delivery_relative_url_list=None,
movement_list=None,**kw):
"""This method is wrapped by UnrestrictedMethod."""
# Parameter initialization # Parameter initialization
if delivery_relative_url_list is None: if delivery_relative_url_list is None:
delivery_relative_url_list = [] delivery_relative_url_list = []
......
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