Subversion Repositories SmartDukaan

Rev

Rev 26106 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26106 Rev 35718
Line 1295... Line 1295...
1295
        return cartPlus
1295
        return cartPlus
1296
    finally:
1296
    finally:
1297
        close_session()
1297
        close_session()
1298
 
1298
 
1299
def close_session():
1299
def close_session():
1300
    if session.is_active:
-
 
1301
        print "session is active. closing it."
-
 
1302
        session.close()
1300
    session.remove()
1303
        
1301
        
1304
 
1302
 
1305
def set_wallet_amount_in_cart(cartId, wallet_amount):
1303
def set_wallet_amount_in_cart(cartId, wallet_amount):
1306
    cart = Cart.get_by(id = cartId)
1304
    cart = Cart.get_by(id = cartId)
1307
    if cart is None:
1305
    if cart is None: