Subversion Repositories SmartDukaan

Rev

Rev 6389 | Rev 6528 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6389 Rev 6502
Line 78... Line 78...
78
    if not quantity:
78
    if not quantity:
79
        raise ShoppingCartException(101, "quantity cannot be null")    
79
        raise ShoppingCartException(101, "quantity cannot be null")    
80
 
80
 
81
    cart = Cart.get_by(id = cart_id)    
81
    cart = Cart.get_by(id = cart_id)    
82
    if not cart:
82
    if not cart:
83
        raise ShoppingCartException(101, "no cart attached to this id")
83
        raise ShoppingCartException(101, "no cart attached to this id" + str(cart_id))
84
    retval = ""
84
    retval = ""
85
    inventory_client = CatalogClient().get_client()
85
    inventory_client = CatalogClient().get_client()
86
    item = inventory_client.getItemForSource(item_id, sourceId)
86
    item = inventory_client.getItemForSource(item_id, sourceId)
87
    item_shipping_info = inventory_client.isActive(item_id)
87
    item_shipping_info = inventory_client.isActive(item_id)
88
    if not item_shipping_info.isActive:
88
    if not item_shipping_info.isActive: