Mercurial > hg > simpypi
comparison simpypi/wsgi.py @ 36:a02d08627d9c
stub a test to upload a package
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 01 Mar 2012 09:28:55 -0800 |
parents | 315b7b49eaf4 |
children | 1bdece293671 |
comparison
equal
deleted
inserted
replaced
35:315b7b49eaf4 | 36:a02d08627d9c |
---|---|
47 """handle posting a package""" | 47 """handle posting a package""" |
48 | 48 |
49 # get the package | 49 # get the package |
50 package = self.request.POST.get('package') | 50 package = self.request.POST.get('package') |
51 | 51 |
52 # sanity check: | |
53 # - does the field exist? | |
54 # - is it a file? | |
55 # TODO | |
56 | |
57 # put the package in the right place | |
58 | |
52 # redirect to the main page | 59 # redirect to the main page |
53 return exc.HTTPSeeOther(add_slash=True) | 60 return exc.HTTPSeeOther(add_slash=True) |
54 | 61 |