comparison simpypi/wsgi.py @ 35:315b7b49eaf4

add redirect
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 01 Mar 2012 09:23:29 -0800
parents ab52f46a3682
children a02d08627d9c
comparison
equal deleted inserted replaced
34:ab52f46a3682 35:315b7b49eaf4
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 # TODO: redirect to the main page 52 # redirect to the main page
53 # self.redirect(self.link(self.handler_path)) 53 return exc.HTTPSeeOther(add_slash=True)
54