changeset 35:315b7b49eaf4

add redirect
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 01 Mar 2012 09:23:29 -0800
parents ab52f46a3682
children a02d08627d9c
files simpypi/wsgi.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/simpypi/wsgi.py	Thu Mar 01 08:45:13 2012 -0800
+++ b/simpypi/wsgi.py	Thu Mar 01 09:23:29 2012 -0800
@@ -49,5 +49,6 @@
         # get the package
         package = self.request.POST.get('package')
 
-        # TODO: redirect to the main page
-        # self.redirect(self.link(self.handler_path))
+        # redirect to the main page
+        return exc.HTTPSeeOther(add_slash=True)
+