#NEWLINE# def __call__( self , query , view ) : #NEWLINE# #INDENT# for ( arg_name , filter_field ) in self . _filter_fields . items ( ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# arg_value = flask . request . args [ arg_name ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# query = query . filter ( filter_field ( view , arg_value ) ) #NEWLINE# #UNINDENT# except ApiError as e : #NEWLINE# #INDENT# raise e . update ( { #NEWLINE# #INDENT# 'source' : { #NEWLINE# #INDENT# 'parameter' : arg_name , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# return query