Subversion Repositories SmartDukaan

Rev

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

Rev 6528 Rev 6550
Line 80... Line 80...
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" + str(cart_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
    catalog_client = CatalogClient().get_client()
86
    item = inventory_client.getItemForSource(item_id, sourceId)
86
    item = catalog_client.getItemForSource(item_id, sourceId)
87
    item_shipping_info = inventory_client.isActive(item_id)
87
    item_shipping_info = catalog_client.isActive(item_id)
88
    if not item_shipping_info.isActive:
88
    if not item_shipping_info.isActive:
89
        return inventory_client.getItemStatusDescription(item_id)
89
        return catalog_client.getItemStatusDescription(item_id)
90
    
90
    
91
    current_time = datetime.datetime.now()
91
    current_time = datetime.datetime.now()
92
    cart.updated_on = current_time
92
    cart.updated_on = current_time
93
    line = get_line(item_id, cart_id, None,True)
93
    line = get_line(item_id, cart_id, None,True)
94
    if line:
94
    if line: