[Mpuls-commits] r5826 - base/trunk/mpulsweb/controllers

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Mon Feb 27 10:50:33 CET 2012


Author: roland
Date: 2012-02-27 10:50:33 +0100 (Mon, 27 Feb 2012)
New Revision: 5826

Modified:
   base/trunk/mpulsweb/controllers/auth.py
Log:
Replace the deprecated redirect_to() with redirect(url())

Modified: base/trunk/mpulsweb/controllers/auth.py
===================================================================
--- base/trunk/mpulsweb/controllers/auth.py	2012-02-23 10:59:12 UTC (rev 5825)
+++ base/trunk/mpulsweb/controllers/auth.py	2012-02-27 09:50:33 UTC (rev 5826)
@@ -1,8 +1,8 @@
 import logging
 import hashlib
 
-from pylons import request, response, tmpl_context as c
-from pylons.controllers.util import redirect_to
+from pylons import request, response, tmpl_context as c, url
+from pylons.controllers.util import redirect
 
 from mpulsweb.lib.base import BaseController, render, session, auth_cookie_name
 from mpulsweb.lib.security import checkLogin, generateID, userIdentity, \
@@ -56,7 +56,7 @@
                 #response.set_cookie('mpuls_auth', shared, secure=True)
                 response.set_cookie(auth_cookie_name(), shared)
 
-                redirect_to("/")
+                redirect(url("/"))
             else:
                 c.login_failed = True
                 session.delete()



More information about the Mpuls-commits mailing list