#NEWLINE# def list_bags( args ) : #NEWLINE# #INDENT# ( key , secret , bucket ) = read_config ( args ) #NEWLINE# catalog = Catalog ( secret , key , secret ) #NEWLINE# if args . html : #NEWLINE# #INDENT# _html ( catalog ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for bag in catalog . bags ( ) : #NEWLINE# #INDENT# print ( '' ) #NEWLINE# print ( ( '%s (%s)' % ( bag . name , bag . size ) ) ) #NEWLINE# for ( key , value ) in bag . info . items ( ) : #NEWLINE# #INDENT# print ( ( '%s: %s' % ( key , value ) ) )