#NEWLINE# def find_resources_ext( self , restype = '' , lcstate = '' , name = '' , keyword = None , nested_type = None , attr_name = None , attr_value = None , alt_id = None , alt_id_ns = None , limit = None , skip = None , descending = None , id_only = True , query = None , access_args = None ) : #NEWLINE# #INDENT# filter_kwargs = self . _get_view_args ( dict ( limit = limit , skip = skip , descending = descending ) , access_args ) #NEWLINE# if query : #NEWLINE# #INDENT# qargs = query [ 'query_args' ] #NEWLINE# if ( id_only is not None ) : #NEWLINE# #INDENT# qargs [ 'id_only' ] = id_only #NEWLINE# #UNINDENT# if ( ( limit is not None ) and ( limit != 0 ) ) : #NEWLINE# #INDENT# qargs [ 'limit' ] = limit #NEWLINE# #UNINDENT# if ( ( skip is not None ) and ( skip != 0 ) ) : #NEWLINE# #INDENT# qargs [ 'skip' ] = skip #NEWLINE# #UNINDENT# return self . find_by_query ( query , access_args = access_args ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if name : #NEWLINE# #INDENT# if lcstate : #NEWLINE# #INDENT# raise BadRequest ( 'find by name does not support lcstate' ) #NEWLINE# #UNINDENT# return self . find_res_by_name ( name , restype , id_only , filter = filter_kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if keyword : #NEWLINE# #INDENT# return self . find_res_by_keyword ( keyword , restype , id_only , filter = filter_kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( alt_id or alt_id_ns ) : #NEWLINE# #INDENT# return self . find_res_by_alternative_id ( alt_id , alt_id_ns , id_only , filter = filter_kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if nested_type : #NEWLINE# #INDENT# return self . find_res_by_nested_type ( nested_type , restype , id_only , filter = filter_kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( restype and attr_name ) : #NEWLINE# #INDENT# return self . find_res_by_attribute ( restype , attr_name , attr_value , id_only = id_only , filter = filter_kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( restype and lcstate ) : #NEWLINE# #INDENT# return self . find_res_by_lcstate ( lcstate , restype , id_only , filter = filter_kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if restype : #NEWLINE# #INDENT# return self . find_res_by_type ( restype , lcstate , id_only , filter = filter_kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if lcstate : #NEWLINE# #INDENT# return self . find_res_by_lcstate ( lcstate , restype , id_only , filter = filter_kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( not restype ) and ( not lcstate ) and ( not name ) ) : #NEWLINE# #INDENT# return self . find_res_by_type ( None , None , id_only , filter = filter_kwargs )