#NEWLINE# def process_request( self , request ) : #NEWLINE# #INDENT# ua = request . user_agent . string . lower ( ) #NEWLINE# mc = request . cookies . get ( self . app . config . get ( 'MOBILE_COOKIE' ) ) #NEWLINE# request . MOBILE = ( ( mc == 'on' ) or ( ( mc != 'off' ) and self . USER_AGENTS . search ( ua ) ) )