#NEWLINE# def list( self , collection , path , retrieve_all = True , **params ) : #NEWLINE# #INDENT# if retrieve_all : #NEWLINE# #INDENT# res = [ ] #NEWLINE# for r in self . _pagination ( collection , path , ** params ) : #NEWLINE# #INDENT# res . extend ( r [ collection ] ) #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# collection : res , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . _pagination ( collection , path , ** params )