Subversion Repositories SmartDukaan

Rev

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

Rev 5623 Rev 6389
Line 361... Line 361...
361
        try:
361
        try:
362
            remove_coupon(cartId)
362
            remove_coupon(cartId)
363
        finally:
363
        finally:
364
            self.closeSession()
364
            self.closeSession()
365
    
365
    
366
    def createOrders(self, cartId, sessionSource, sessionTime, firstSource, firstSourceTime, userId):
366
    def createOrders(self, cartId, sessionSource, sessionTime, firstSource, firstSourceTime, userId, schemeId):
367
        """
367
        """
368
        Parameters:
368
        Parameters:
369
         - cartId
369
         - cartId
370
         - sessionSource
370
         - sessionSource
371
        """
371
        """
372
        try:
372
        try:
373
            return commit_cart(cartId, sessionSource, sessionTime, firstSource, firstSourceTime, userId)
373
            return commit_cart(cartId, sessionSource, sessionTime, firstSource, firstSourceTime, userId, schemeId)
374
        finally:
374
        finally:
375
            self.closeSession()
375
            self.closeSession()
376
 
376
 
377
    def validateCart(self, cartId, sourceId):
377
    def validateCart(self, cartId, sourceId):
378
        """
378
        """
Line 695... Line 695...
695
                t_users.append(to_t_user(user))
695
                t_users.append(to_t_user(user))
696
            return t_users
696
            return t_users
697
        finally:
697
        finally:
698
            self.closeSession()
698
            self.closeSession()
699
    
699
    
700
    def putUserNote(self, userId, entityId, slide, note):
-
 
701
        """
-
 
702
        Saves user's note for a particular slide of an entity
-
 
703
        
-
 
704
        Parameters:
-
 
705
        - userId
-
 
706
        - entityId
-
 
707
        - slide
-
 
708
        - note
-
 
709
        """
-
 
710
        try:
-
 
711
            put_user_note(userId, entityId, slide, note)
-
 
712
        finally:
-
 
713
            self.closeSession()
-
 
714
    
-
 
715
    def getUserNotes(self, userId, entityId):
-
 
716
        """
-
 
717
        Retrieves user's notes associated with an entity
-
 
718
        
-
 
719
        Parameters:
-
 
720
        - userId
-
 
721
        - entityId
-
 
722
        """
-
 
723
        try:
-
 
724
            return [to_t_user_note(user_note) for user_note in get_user_notes(userId, entityId)]
-
 
725
        finally:
-
 
726
            self.closeSession()
-
 
727
    
-
 
728
 
-
 
729
    def getMyResearchItems(self, userId):
700
    def getMyResearchItems(self, userId):
730
        """
701
        """
731
        Parameters:
702
        Parameters:
732
         - userId
703
         - userId
733
        """
704
        """