#NEWLINE# def get_rbac_policies( self , context , filters = None , fields = None , sorts = None , limit = None , page_reverse = False ) : #NEWLINE# #INDENT# filters = ( filters or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# object_type_filters = filters . pop ( 'object_type' , None ) #NEWLINE# models_to_query = [ m for ( t , m ) in models . get_type_model_map ( ) . items ( ) if ( ( object_type_filters is None ) or ( t in object_type_filters ) ) ] #NEWLINE# collections = [ self . _get_collection ( context , model , self . _make_rbac_policy_dict , filters = filters , fields = fields , sorts = sorts , limit = limit , page_reverse = page_reverse ) for model in models_to_query ] #NEWLINE# return [ item for c in fields for item in c ]