changeset 19:4da97e040145

* fix syntax * bump version
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 16 Jul 2011 17:46:04 -0700
parents cc5f567ce840
children f1142bcce77a
files setup.py uploader/handlers.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,12 @@
 from setuptools import setup, find_packages
 import sys, os
 
-version = "0.2.5"
+version = "0.2.6"
 
 setup(name='uploader',
       version=version,
       description="a file uploader app",
       long_description="",
       classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
       author='Ethan Jucovy',
       author_email='',
--- a/uploader/handlers.py
+++ b/uploader/handlers.py
@@ -59,17 +59,17 @@ class Post(Handler):
         fout.write(fin.file.read())
         fout.close()
 
     def __call__(self):
 
         # get the file
         fin = self.request.POST['file']
         try:
-            _path = fin.filename:
+            _path = fin.filename
         except AttributeError: # no file uploaded
             return self.redirect(self.link('/'))
 
         # don't allow bad filenames
         illegal = ['..', '<', '&', '>']
         illegal.append(os.path.sep)
         for i in illegal:
             _path = _path.replace(i, '_')