#NEWLINE# def process_request( self , request ) : #NEWLINE# #INDENT# "\n        Set the thread's pinning flag according to the presence of the session\n        variable.\n        " #NEWLINE# pinned_until = request . session . get ( PINNING_KEY , False ) #NEWLINE# if ( pinned_until and ( pinned_until > datetime . now ( ) ) ) : #NEWLINE# #INDENT# pinning . pin_thread ( )