[Mpuls-commits] r5830 - base/trunk/mpulsweb/controllers
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Mon Feb 27 11:02:18 CET 2012
Author: roland
Date: 2012-02-27 11:02:17 +0100 (Mon, 27 Feb 2012)
New Revision: 5830
Modified:
base/trunk/mpulsweb/controllers/news.py
Log:
Replace the deprecated redirect_to() with redirect(url())
Modified: base/trunk/mpulsweb/controllers/news.py
===================================================================
--- base/trunk/mpulsweb/controllers/news.py 2012-02-27 09:58:47 UTC (rev 5829)
+++ base/trunk/mpulsweb/controllers/news.py 2012-02-27 10:02:17 UTC (rev 5830)
@@ -2,8 +2,8 @@
import logging
-from pylons import tmpl_context as c
-from pylons.controllers.util import redirect_to
+from pylons import tmpl_context as c, url
+from pylons.controllers.util import redirect
from mpulsweb.lib.translation import _, ungettext
from mpulsweb.lib.helpers import url_for
@@ -27,7 +27,7 @@
if confirmed == 1:
user = UserObject(session_user.id)
user.setNewsAsRead(id)
- redirect_to(controller='/')
+ redirect(url(controller='/'))
else:
c.dialog_title = _(u"Mark message as read")
c.dialog_text = _(u"""Do you really want to mark the message as read?
More information about the Mpuls-commits
mailing list