def get_deliveries(self, **kwargs):
    for partition in self.cart.partition():
        if (self.shipping_address_step and self.shipping_method_step.shipping_method):
            shipping_method = self.shipping_method_step.shipping_method
            shipping_cost = shipping_method.get_delivery_total(partition)
        else:
            shipping_cost = Price(0, currency=settings.DEFAULT_CURRENCY)
        total_with_shipping = (partition.get_total(**kwargs) + shipping_cost)
        (yield (partition, shipping_cost, total_with_shipping))
def get_deliveries(self, **kwargs):
    for partition in self.cart.partition():
        if (self.shipping_address_step and self.shipping_method_step.shipping_method):
            shipping_method = self.shipping_method_step.shipping_method
            shipping_cost = shipping_method.get_delivery_total(partition)
        else:
            shipping_cost = Price(0, currency=settings.DEFAULT_CURRENCY)
        total_with_shipping = (partition.get_total(**kwargs) + shipping_cost)
        (yield (partition, shipping_cost, total_with_shipping))