[Mpuls-commits] r2778 - in base/trunk: . mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed May 26 18:57:35 CEST 2010


Author: bh
Date: 2010-05-26 18:57:35 +0200 (Wed, 26 May 2010)
New Revision: 2778

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/controllers/settings.py
Log:
* mpulsweb/controllers/settings.py
(SettingsController.editAction): Use h.url_for consistently for
all-intra application URLs.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-05-26 16:46:01 UTC (rev 2777)
+++ base/trunk/ChangeLog	2010-05-26 16:57:35 UTC (rev 2778)
@@ -1,5 +1,11 @@
 2010-05-26  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/controllers/settings.py
+	(SettingsController.editAction): Use h.url_for consistently for
+	all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/controllers/repeatgroup.py
 	(RepeatgroupController.delete): Use h.url_for consistently for
 	all-intra application URLs.

Modified: base/trunk/mpulsweb/controllers/settings.py
===================================================================
--- base/trunk/mpulsweb/controllers/settings.py	2010-05-26 16:46:01 UTC (rev 2777)
+++ base/trunk/mpulsweb/controllers/settings.py	2010-05-26 16:57:35 UTC (rev 2778)
@@ -5,6 +5,7 @@
 from pylons import request, tmpl_context as c
 from pylons.i18n import _
 
+from mpulsweb.lib.helpers import url_for
 from mpulsweb.lib.base import BaseController, render
 from mpulsweb.lib.validators import EditSettingsForm
 from mpulsweb.lib.security import checkRole
@@ -51,7 +52,7 @@
         c.agency.store(c.form_result)
         c.dialog_title = EDIT_AGENCY_SUCCESS_HEADER
         c.dialog_text = EDIT_AGENCY_SUCCESS_TEXT
-        c.url_ok = "/settings"
+        c.url_ok = url_for(controller='/settings')
         return render ('/settings/dialogs/success_edit.mako')
 
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:



More information about the Mpuls-commits mailing list