#NEWLINE# @ skip_on_exclude #NEWLINE# def request( self , request ) : #NEWLINE# #INDENT# key = request . config [ 'SESSION_COOKIE_NAME' ] #NEWLINE# session_key = request . cookies . get ( key ) #NEWLINE# session = None #NEWLINE# if session_key : #NEWLINE# #INDENT# session = self . get_session ( request , session_key . value ) #NEWLINE# #UNINDENT# if ( not user ) : #NEWLINE# #INDENT# session = self . create_session ( request ) #NEWLINE# #UNINDENT# request . cache . session = session #NEWLINE# user = session . get_user ( ) #NEWLINE# if user : #NEWLINE# #INDENT# request . cache . user = user