[Mpuls-commits] r5831 - base/trunk/mpulsweb/controllers
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Mon Feb 27 11:06:40 CET 2012
Author: roland
Date: 2012-02-27 11:06:40 +0100 (Mon, 27 Feb 2012)
New Revision: 5831
Modified:
base/trunk/mpulsweb/controllers/case.py
Log:
Replace the deprecated redirect_to() with redirect(url())
Modified: base/trunk/mpulsweb/controllers/case.py
===================================================================
--- base/trunk/mpulsweb/controllers/case.py 2012-02-27 10:02:17 UTC (rev 5830)
+++ base/trunk/mpulsweb/controllers/case.py 2012-02-27 10:06:40 UTC (rev 5831)
@@ -4,8 +4,8 @@
import paste
import formencode
-from pylons import request, tmpl_context as c, app_globals as g
-from pylons.controllers.util import redirect_to
+from pylons import request, tmpl_context as c, app_globals as g, url
+from pylons.controllers.util import redirect
from formed.instance.tree import SetDataException
@@ -38,7 +38,7 @@
@checkRole(('admin', 'cm', 'pt_dlr'))
def index(self):
- redirect_to(controller="/case_overview")
+ redirect(url(controller="/case_overview"))
@checkRole(('admin', 'cm', 'pt_dlr'))
@checkPrivacyStatement()
@@ -571,7 +571,7 @@
session_case = SessionCase()
session['case'] = session_case
session.save()
- redirect_to('new2')
+ redirect(url('new2'))
@checkRole('cm')
def new2(self):
More information about the Mpuls-commits
mailing list