Subversion Repositories SmartDukaan

Rev

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

Rev 1273 Rev 1466
Line 397... Line 397...
397
        """
397
        """
398
        try:
398
        try:
399
            return commit_cart(cartId)
399
            return commit_cart(cartId)
400
        finally:
400
        finally:
401
            CartDataAccessors.close_session()
401
            CartDataAccessors.close_session()
402
            
402
 
403
    def validateCart(self, cartId):
403
    def validateCart(self, cartId):
404
        """
404
        """
-
 
405
        Validates that:
-
 
406
        1. The checkout timestamp is greater than the updatedOn timestamp.
-
 
407
        2. All of the lines in the cart are active items.
-
 
408
        3. The estimate for any of the lines in cart doesn't change.
-
 
409
        If all three are true, returns empty string; else returns appropriate message.
-
 
410
        
405
        Parameters:
411
        Parameters:
406
         - cartId
412
         - cartId
407
        """
413
        """
408
        try:
414
        try:
409
            return validate_cart(cartId)
415
            return validate_cart(cartId)