Logo Search packages:      
Sourcecode: zope-emarket version File versions

def EMarket::ShopperManager::ShopperManager::setProcessed (   self,
  theShopper 
)

finalize a transaction... put the current basket id into the list of
    'checked out' baskets.

Definition at line 58 of file ShopperManager.py.

00058                                       :
        """ finalize a transaction... put the current basket id into the list of
            'checked out' baskets.
        """
        
        theTransactionCollection = self.transactions.getItem( theShopper.id )

        if theTransactionCollection is None:
            theTransactionCollection = self.transactions.newItem( theShopper.id )
            theTransactionCollection.transactionIds = []

        tids = theTransactionCollection.transactionIds   # update transactionIds as an immutable.. 
        tids.append(self.currentBasketId( theShopper.id ))
        theTransactionCollection.transactionIds = tids

        self.incrTransCount(theShopper)
        
        newBasket = self.basketManager.newShoppingBasket( theShopper.id )
        
        return 1
    
    def addToBasket(self, REQUEST=None, RESPONSE=None):


Generated by  Doxygen 1.6.0   Back to index