#NEWLINE# def __call__( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# view = copy . copy ( self ) #NEWLINE# view . request = request #NEWLINE# view . parse_params ( * args , ** callback ) #NEWLINE# callback = view . get_callback ( ) #NEWLINE# if callback : #NEWLINE# #INDENT# return callback ( * args , ** kwargs ) #NEWLINE# #UNINDENT# allowed_methods = [ m for m in view . allowed_methods if hasattr ( view , m ) ] #NEWLINE# return http . HttpResponseNotAllowed ( allowed_methods )