# HG changeset patch # User Jeff Hammel # Date 1312268013 25200 # Node ID 183224756dedc20460ef238eb834fa8159b1c5f2 # Parent f1142bcce77a738a6a81c89ac4dd8c2d4717c6cd reverse order the log for display diff -r f1142bcce77a -r 183224756ded setup.py --- 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, diff -r f1142bcce77a -r 183224756ded uploader/handlers.py --- 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 += '
No files in upload directory
' 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 += '
Upload log:
%s
' % log_contents form += '' return Response(content_type='text/html', body=form)