#NEWLINE# @ classmethod #NEWLINE# def _ListAllKeys( cls , obj_store , prefix , callback ) : #NEWLINE# #INDENT# 'Lists all keys for the given prefix, making multiple calls as necessary.' #NEWLINE# def _AppendResults( results , keys ) : #NEWLINE# #INDENT# results += keys #NEWLINE# if ( len ( keys ) < MAX_CLIENT_LOGS ) : #NEWLINE# #INDENT# callback ( results ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# obj_store . ListKeys ( partial ( _AppendResults , results ) , prefix = prefix , marker = keys [ ( - 1 ) ] , maxkeys = MAX_CLIENT_LOGS ) #NEWLINE# #UNINDENT# #UNINDENT# obj_store . ListKeys ( partial ( cls , [ ] ) , prefix = prefix , maxkeys = MAX_CLIENT_LOGS )