#NEWLINE# def process_request( self , request ) : #NEWLINE# #INDENT# request . cookies_to_delete = [ ] #NEWLINE# strategy = selector . strategy ( request = request , user = request . user ) #NEWLINE# request . strategy = strategy #NEWLINE# request . _basket_cache = None #NEWLINE# def load_full_basket( ) : #NEWLINE# #INDENT# '\n            Return the basket after applying offers.\n            ' #NEWLINE# basket = self . get_basket ( request ) #NEWLINE# basket . strategy = request . strategy #NEWLINE# self . apply_offers_to_basket ( request , basket ) #NEWLINE# return basket #NEWLINE# #UNINDENT# def load_basket_hash( ) : #NEWLINE# #INDENT# "\n            Load the basket and return the basket hash\n\n            Note that we don't apply offers or check that every line has a\n            stockrecord here.\n            " #NEWLINE# basket = self . get_basket ( request ) #NEWLINE# if basket . id : #NEWLINE# #INDENT# return self . get_basket_hash ( basket . id ) #NEWLINE# #UNINDENT# #UNINDENT# request . basket = SimpleLazyObject ( load_full_basket ) #NEWLINE# request . basket_hash = SimpleLazyObject ( load_basket_hash )