Subversion Repositories SmartDukaan

Rev

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

Rev 2035 Rev 2100
Line 132... Line 132...
132
        line.quantity = quantity
132
        line.quantity = quantity
133
        line.created_on = current_time
133
        line.created_on = current_time
134
        line.updated_on = current_time
134
        line.updated_on = current_time
135
        line.line_status = LineStatus.LINE_ACTIVE
135
        line.line_status = LineStatus.LINE_ACTIVE
136
    session.commit()
136
    session.commit()
137
    return None
137
    return ""
138
    #validate_cart(cart_id)
138
    #validate_cart(cart_id)
139
 
139
 
140
def delete_item_from_cart(cart_id, item_id):
140
def delete_item_from_cart(cart_id, item_id):
141
    if not item_id:
141
    if not item_id:
142
        raise ShoppingCartException(101, "item_id cannot be null")
142
        raise ShoppingCartException(101, "item_id cannot be null")