#NEWLINE# def _get_objects( self , show = None , order_by = None , order_dir = None , path = None , filters = None ) : #NEWLINE# #INDENT# if ( not filters ) : #NEWLINE# #INDENT# filters = [ ] #NEWLINE# #UNINDENT# if ( not show ) : #NEWLINE# #INDENT# show = self . default_show #NEWLINE# #UNINDENT# query_set = Request . objects . all ( ) #NEWLINE# if ( not order_by ) : #NEWLINE# #INDENT# order_by = self . default_order_by #NEWLINE# #UNINDENT# if ( not order_dir ) : #NEWLINE# #INDENT# order_dir = self . default_order_dir #NEWLINE# #UNINDENT# if ( order_by not in self . order_by . keys ( ) ) : #NEWLINE# #INDENT# raise RuntimeError ( ( 'Unknown order_by: "%s"' % order_by ) ) #NEWLINE# #UNINDENT# ob = self . order_by [ order_by ] #NEWLINE# if ( ob [ 'additional_query_filter' ] is not None ) : #NEWLINE# #INDENT# query_set = ob [ 'additional_query_filter' ] ( query_set ) #NEWLINE# #UNINDENT# query_set = query_set . order_by ( ( '%s%s' % ( ( '-' if ( order_dir == 'DESC' ) else '' ) , order_by ) ) ) #NEWLINE# if path : #NEWLINE# #INDENT# query_set = query_set . filter ( path = path ) #NEWLINE# #UNINDENT# for f in filters : #NEWLINE# #INDENT# query_set = f . contribute_to_query_set ( query_set ) #NEWLINE# query_set = query_set . filter ( f ) #NEWLINE# #UNINDENT# return query_set [ : show ]