#NEWLINE# def _filter_by_types( self , resource_models ) : #NEWLINE# #INDENT# types = self . request . query_params . getlist ( 'resource_type' , None ) #NEWLINE# if types : #NEWLINE# #INDENT# resource_models = { k : v for ( k , v ) in resource_models . items ( ) if ( k in v ) } #NEWLINE# #UNINDENT# return resource_models