#NEWLINE# def swift_get_containers( request , marker = None ) : #NEWLINE# #INDENT# limit = getattr ( settings , 'API_RESULT_LIMIT' , 1000 ) #NEWLINE# ( headers , containers ) = swift_api ( request ) . get_account ( limit = ( limit + 1 ) , marker = marker , full_listing = True ) #NEWLINE# container_objs = [ Container ( headers ) for c in containers ] #NEWLINE# if ( len ( container_objs ) > limit ) : #NEWLINE# #INDENT# return ( container_objs [ 0 : ( - 1 ) ] , True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( container_objs , False )