#NEWLINE# def get( self ) : #NEWLINE# #INDENT# files = [ ] #NEWLINE# for filename in os . listdir ( options . datadir ) : #NEWLINE# #INDENT# mtime = os . stat ( os . path . join ( options . datadir , filename ) ) . st_mtime #NEWLINE# files . append ( ( mtime , filename ) ) #NEWLINE# #UNINDENT# files . sort ( key = ( lambda x : ( ( - x [ 0 ] ) , x [ 1 ] ) ) ) #NEWLINE# self . render ( 'index.html' , files = [ f [ 1 ] for f in files ] )