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

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Thu Mar 1 12:44:55 CET 2012


Author: roland
Date: 2012-03-01 12:44:55 +0100 (Thu, 01 Mar 2012)
New Revision: 5837

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

Modified: base/trunk/mpulsweb/controllers/appointment.py
===================================================================
--- base/trunk/mpulsweb/controllers/appointment.py	2012-02-29 10:30:45 UTC (rev 5836)
+++ base/trunk/mpulsweb/controllers/appointment.py	2012-03-01 11:44:55 UTC (rev 5837)
@@ -31,11 +31,14 @@
 import logging
 from datetime import datetime
 
+from pylons import url
+from pylons.controllers.util import redirect
+
 import formencode
 
 from mpulsweb.lib.translation import _, ungettext
 
-from mpulsweb.lib.base import BaseController, c, redirect_to, render, request
+from mpulsweb.lib.base import BaseController, c, render, request
 from mpulsweb.lib.helpers import url_for, dd_mm_YYYY, HH_MM
 from mpulsweb.lib.security import checkRole
 from mpulsweb.model.appointment import GlobalAppointmentOverview, \
@@ -49,7 +52,7 @@
 
     @checkRole(('admin', 'cm', 'pt_dlr'))
     def index(self):
-        redirect_to(action='overview')
+        redirect(url(action='overview'))
 
     @checkRole(('admin', 'cm', 'pt_dlr'))
     def overview(self):



More information about the Mpuls-commits mailing list