#NEWLINE# def _get_all( self , collection , **kwargs ) : #NEWLINE# #INDENT# "Construct iterator to get all entities in a collection.\n\n        Pages over 100 entities.\n        This method should not be called directly: it's called from T1.get.\n        " #NEWLINE# ( _ , num_recs ) = super ( T1 , self ) . _get ( PATHS [ 'mgmt' ] , kwargs [ '_url' ] , params = { #NEWLINE# #INDENT# 'page_limit' : 1 , #NEWLINE# 'parent' : kwargs . get ( 'parent' ) , #NEWLINE# 'q' : kwargs . get ( 'query' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# if kwargs . get ( 'count' ) : #NEWLINE# #INDENT# ( yield num_recs ) #NEWLINE# #UNINDENT# for page_offset in six . moves . range ( 0 , num_recs , 100 ) : #NEWLINE# #INDENT# gen = self . get ( collection , _url = kwargs [ '_url' ] , entity = kwargs . get ( 'entity' ) , include = kwargs . get ( 'include' ) , full = kwargs . get ( 'full' ) , page_offset = page_offset , sort_by = kwargs . get ( 'sort_by' ) , parent = kwargs . get ( 'parent' ) , query = kwargs . get ( 'query' ) , get_all = False ) #NEWLINE# if ( not isinstance ( gen , GeneratorType ) ) : #NEWLINE# #INDENT# gen = iter ( [ num_recs ] ) #NEWLINE# #UNINDENT# for item in gen : #NEWLINE# #INDENT# ( yield item )