[Mpuls-commits] r5997 - base/trunk/mpulsweb/controllers
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Tue Jun 26 13:17:05 CEST 2012
Author: bricks
Date: 2012-06-26 13:17:05 +0200 (Tue, 26 Jun 2012)
New Revision: 5997
Modified:
base/trunk/mpulsweb/controllers/settings.py
Log:
Allow to show all errors if settings couldn't be changed
If an error is not corresponding to a input field e.g. if
a user submits not allowed fields pass the actual error
message to the template.
Modified: base/trunk/mpulsweb/controllers/settings.py
===================================================================
--- base/trunk/mpulsweb/controllers/settings.py 2012-06-26 09:40:14 UTC (rev 5996)
+++ base/trunk/mpulsweb/controllers/settings.py 2012-06-26 11:17:05 UTC (rev 5997)
@@ -59,6 +59,7 @@
except formencode.Invalid, error:
c.form_result = error.value
c.form_errors = error.error_dict or {}
+ c.form_error_msg = str(error)
form = render('/settings/edit.mako')
return formencode.htmlfill.render(form,
defaults=c.form_result,
More information about the Mpuls-commits
mailing list