#NEWLINE# def load_all_in_ids( self , query , skip = 0 , num = 0 ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return list ( self . _coll . find ( query , { #NEWLINE# #INDENT# '_id' : 1 , #NEWLINE# #UNINDENT# } , skip = query , limit = num ) ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# logger . warning ( e . message ) #NEWLINE# logger . warning ( 'can not load documents by query' . format ( query ) ) #NEWLINE# return [ ]