#NEWLINE# @ wrap_boto_errors #NEWLINE# def get_objects( self , path , marker = None , limit = settings . CLOUD_BROWSER_DEFAULT_LIST_LIMIT ) : #NEWLINE# #INDENT# 'Get objects.' #NEWLINE# from itertools import islice #NEWLINE# path = ( ( path . rstrip ( SEP ) + SEP ) if path else path ) #NEWLINE# result_set = self . native_container . list ( path , SEP , marker ) #NEWLINE# results = list ( islice ( result_set , ( limit + 1 ) ) ) #NEWLINE# if results : #NEWLINE# #INDENT# if ( marker and ( results [ 0 ] . name . rstrip ( SEP ) == marker . rstrip ( SEP ) ) ) : #NEWLINE# #INDENT# results = results [ 1 : ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# results = results [ : limit ] #NEWLINE# #UNINDENT# #UNINDENT# return [ self . obj_cls . from_result ( self , r ) for r in results ]