[Mpuls-commits] r5827 - base/trunk/mpulsweb/controllers
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Mon Feb 27 10:55:04 CET 2012
Author: roland
Date: 2012-02-27 10:55:04 +0100 (Mon, 27 Feb 2012)
New Revision: 5827
Modified:
base/trunk/mpulsweb/controllers/casedocument.py
Log:
Replace the deprecated redirect_to() with redirect(url())
Modified: base/trunk/mpulsweb/controllers/casedocument.py
===================================================================
--- base/trunk/mpulsweb/controllers/casedocument.py 2012-02-27 09:50:33 UTC (rev 5826)
+++ base/trunk/mpulsweb/controllers/casedocument.py 2012-02-27 09:55:04 UTC (rev 5827)
@@ -5,8 +5,8 @@
import paste
-from pylons import request, tmpl_context as c
-from pylons.controllers.util import redirect_to
+from pylons import request, tmpl_context as c, url
+from pylons.controllers.util import redirect
from mpulsweb.lib.translation import _, ungettext
from mpulsweb.lib.base import BaseController, render, session, g
@@ -102,7 +102,7 @@
return data(request.environ, self.start_response)
except Exception, e:
log.exception(e)
- redirect_to(controller="case", action="documents")
+ redirect(url(controller="case", action="documents"))
@checkRole('cm')
def delete(self, id, confirmed):
More information about the Mpuls-commits
mailing list