#NEWLINE# def process_request( self , request ) : #NEWLINE# #INDENT# if ( self . forced_state is not None ) : #NEWLINE# #INDENT# state = self . forced_state #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( request . META . get ( settings . REPLICATED_FORCE_STATE_HEADER ) in ( 'master' , 'slave' ) ) : #NEWLINE# #INDENT# state = request . META [ settings . REPLICATED_FORCE_STATE_HEADER ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# state = ( 'slave' if ( request . method in [ 'GET' , 'HEAD' ] ) else 'master' ) #NEWLINE# state = self . check_state_override ( request , state ) #NEWLINE# #UNINDENT# #UNINDENT# routers . init ( request )