[Mpuls-commits] r5568 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Nov 10 22:04:28 CET 2011
Author: bh
Date: 2011-11-10 22:04:28 +0100 (Thu, 10 Nov 2011)
New Revision: 5568
Modified:
base/trunk/mpulsweb/controllers/usersettings.py
Log:
Avoid routes memory by adding leading slashes to controller names
in url_for calls. The /usersettings/showSettings URL generated in
changePasswordAction would include an ID otherwise for some reason.
Modified: base/trunk/mpulsweb/controllers/usersettings.py
===================================================================
--- base/trunk/mpulsweb/controllers/usersettings.py 2011-11-10 20:56:03 UTC (rev 5567)
+++ base/trunk/mpulsweb/controllers/usersettings.py 2011-11-10 21:04:28 UTC (rev 5568)
@@ -90,7 +90,7 @@
c.dialog_title = _(u"User password changed!")
c.dialog_text = _(u"You password was successfully changed") + \
" " + _("Please click OK to continue.")
- c.url_ok = h.url_for(controller="usersettings",
+ c.url_ok = h.url_for(controller="/usersettings",
action="showSettings")
else:
return "Password could not be changed"
@@ -125,7 +125,7 @@
c.dialog_title = _(u"User password changed!")
c.dialog_text = _(u"You password was successfully changed") + \
" " + _("Please click OK to continue.")
- c.url_ok = h.url_for(controller="usersettings",
+ c.url_ok = h.url_for(controller="/usersettings",
action="showSettings")
else:
return "Password could not be changed"
More information about the Mpuls-commits
mailing list