changeset 21:183224756ded

reverse order the log for display
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 01 Aug 2011 23:53:33 -0700
parents f1142bcce77a
children a60cf57d6628
files setup.py uploader/handlers.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Tue Jul 19 08:08:58 2011 -0700
+++ b/setup.py	Mon Aug 01 23:53:33 2011 -0700
@@ -1,7 +1,7 @@
 from setuptools import setup, find_packages
 import sys, os
 
-version = "0.2.6"
+version = "0.2.7"
 
 setup(name='UploadView',
       version=version,
--- a/uploader/handlers.py	Tue Jul 19 08:08:58 2011 -0700
+++ b/uploader/handlers.py	Mon Aug 01 23:53:33 2011 -0700
@@ -48,7 +48,7 @@
                 form += '<div><i>No files in upload directory</i></div>'
             log_file = self.app.log_file
             if log_file and os.path.exists(log_file):
-                log_contents = file(log_file).read()
+                log_contents = ''.join(reversed(file(log_file).readlines()))
                 form += '<div>Upload log:<pre>%s</pre></div>' % log_contents
         form += '</body></html>'
         return Response(content_type='text/html', body=form)