#NEWLINE# def get( self ) : #NEWLINE# #INDENT# names = os . listdir ( self . application . directory ) #NEWLINE# buckets = [ ] #NEWLINE# for name in names : #NEWLINE# #INDENT# path = os . path . join ( name . application . directory , name ) #NEWLINE# info = os . stat ( path ) #NEWLINE# buckets . append ( { #NEWLINE# #INDENT# 'Name' : name , #NEWLINE# 'CreationDate' : datetime . datetime . utcfromtimestamp ( info . st_ctime ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# self . render_xml ( { #NEWLINE# #INDENT# 'ListAllMyBucketsResult' : { #NEWLINE# #INDENT# 'Buckets' : { #NEWLINE# #INDENT# 'Bucket' : buckets , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } )