#NEWLINE# def service_get_all( self , message , filters ) : #NEWLINE# #INDENT# if ( filters is None ) : #NEWLINE# #INDENT# filters = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# disabled = filters . pop ( 'disabled' , None ) #NEWLINE# services = objects . ServiceList . get_all ( message . ctxt , disabled = disabled ) #NEWLINE# ret_services = [ ] #NEWLINE# for service in services : #NEWLINE# #INDENT# for ( key , val ) in six . iteritems ( filters ) : #NEWLINE# #INDENT# if ( getattr ( service , key ) != val ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# ret_services . append ( service ) #NEWLINE# #UNINDENT# #UNINDENT# return ret_services