#NEWLINE# def get_list( self , term , offset = 0 , limit = DEFAULT_PAGE_SIZE ) : #NEWLINE# #INDENT# query = self . model . select ( ) #NEWLINE# stmt = None #NEWLINE# for field in self . _cached_fields : #NEWLINE# #INDENT# q = ( query ** ( '%%%s%%' % term ) ) #NEWLINE# if ( stmt is None ) : #NEWLINE# #INDENT# stmt = q #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# stmt |= q #NEWLINE# #UNINDENT# #UNINDENT# query = query . where ( stmt ) #NEWLINE# if offset : #NEWLINE# #INDENT# query = query . offset ( offset ) #NEWLINE# #UNINDENT# return list ( query . limit ( limit ) . execute ( ) )