diff --git a/commerce/README.txt b/commerce/README.txt index f381c16..2850ae8 100644 --- a/commerce/README.txt +++ b/commerce/README.txt @@ -99,7 +99,7 @@ The items in a shopping cart may be included in an order. >>> for item in orderItems.getCart(c001): ... item.setOrder(ord001) -Now the default cart is empty; we now have to supply the order for +Now the default cart is empty; we have to supply the order for retrieving the order items. >>> orderItems.getCart(c001) diff --git a/commerce/configure.zcml b/commerce/configure.zcml index 14dd1d6..4e151ad 100644 --- a/commerce/configure.zcml +++ b/commerce/configure.zcml @@ -8,4 +8,6 @@ + + diff --git a/commerce/interfaces.py b/commerce/interfaces.py index 8106fb1..aa0a942 100644 --- a/commerce/interfaces.py +++ b/commerce/interfaces.py @@ -371,6 +371,6 @@ class IOrderItems(Interface): may be specified via keyword arguments. """ - def getCart(party, order='???', shop=None, run=0, **kw): + def getCart(party=None, order='???', shop=None, run=0, **kw): """ Return a collection of order items. """ diff --git a/commerce/order.py b/commerce/order.py index 4dff4b8..c26c2b9 100644 --- a/commerce/order.py +++ b/commerce/order.py @@ -116,7 +116,7 @@ class OrderItems(object): self.context.indexTrack(0, track, 'order') return track - def getCart(self, party, order='???', shop=None, run=None, **kw): + def getCart(self, party=None, order='???', shop=None, run=None, **kw): if run: kw['run'] = run result = self.query(party=party, order=order, **kw)