aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/decorators.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-06-05 15:36:51 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-06-05 15:36:51 -0500
commita7fcc027aa5f3f080a288eedeb5d153ca71a53d7 (patch)
tree3a464904b2c4420b4f239be411e755ba80498a32 /mediagoblin/decorators.py
parentcb9bac0c83b7dd6d9153fc153b7282c26fe466f6 (diff)
parent9150244afa45628dd752a67272129d30d6c72224 (diff)
downloadmediagoblin-a7fcc027aa5f3f080a288eedeb5d153ca71a53d7.tar.lz
mediagoblin-a7fcc027aa5f3f080a288eedeb5d153ca71a53d7.tar.xz
mediagoblin-a7fcc027aa5f3f080a288eedeb5d153ca71a53d7.zip
Merge remote branch 'remotes/elrond/idea/shortcuts'
Diffstat (limited to 'mediagoblin/decorators.py')
-rw-r--r--mediagoblin/decorators.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mediagoblin/decorators.py b/mediagoblin/decorators.py
index 34575320..c2fe3f9f 100644
--- a/mediagoblin/decorators.py
+++ b/mediagoblin/decorators.py
@@ -18,6 +18,7 @@
from bson.errors import InvalidId
from webob import exc
+from mediagoblin.util import redirect
from mediagoblin.db.util import ObjectId
@@ -38,9 +39,8 @@ def require_active_login(controller):
def new_controller_func(request, *args, **kwargs):
if request.user and \
request.user.get('status') == u'needs_email_verification':
- return exc.HTTPFound(
- location = request.urlgen(
- 'mediagoblin.auth.verify_email_notice'))
+ return redirect(request,
+ 'mediagoblin.auth.verify_email_notice')
elif not request.user or request.user.get('status') != u'active':
return exc.HTTPFound(
location="%s?next=%s" % (