#NEWLINE# def get_callback( self ) : #NEWLINE# #INDENT# "\n        Based on the request's HTTP method, get the callback on this class that\n        returns a response. If the method isn't allowed, None is returned.\n        " #NEWLINE# method = self . request . method . upper ( ) #NEWLINE# if ( method not in self . allowed_methods ) : #NEWLINE# #INDENT# if self . strict_allowed_methods : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# method = 'GET' #NEWLINE# #UNINDENT# #UNINDENT# callback = getattr ( self , method , getattr ( self , 'GET' , None ) ) #NEWLINE# return callback