[Mpuls-commits] r4598 - in base/trunk: . mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Feb 9 18:12:41 CET 2011
Author: bh
Date: 2011-02-09 18:12:40 +0100 (Wed, 09 Feb 2011)
New Revision: 4598
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/controllers/formularpage.py
Log:
* mpulsweb/controllers/formularpage.py (get_rendered_page): Remove
superfluous assignment to c.formularerrors. It will always be set
to a different value later.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2011-02-09 17:06:12 UTC (rev 4597)
+++ base/trunk/ChangeLog 2011-02-09 17:12:40 UTC (rev 4598)
@@ -1,5 +1,11 @@
2011-02-09 Bernhard Herzog <bh at intevation.de>
+ * mpulsweb/controllers/formularpage.py (get_rendered_page): Remove
+ superfluous assignment to c.formularerrors. It will always be set
+ to a different value later.
+
+2011-02-09 Bernhard Herzog <bh at intevation.de>
+
* mpulsweb/controllers/formularpage.py (get_rendered_page):
Simplify the control flow a little by exiting early if the page
wasn't found.
Modified: base/trunk/mpulsweb/controllers/formularpage.py
===================================================================
--- base/trunk/mpulsweb/controllers/formularpage.py 2011-02-09 17:06:12 UTC (rev 4597)
+++ base/trunk/mpulsweb/controllers/formularpage.py 2011-02-09 17:12:40 UTC (rev 4598)
@@ -110,7 +110,6 @@
errors = {}
defaults = {}
else:
- c.formularerrors = u"Fehler"
renderer = ViewRenderer(instance_tree, page,
session.get('render_mode', 'ro') == 'ro')
errors, defaults = convert_error_items(page.getErrors())
More information about the Mpuls-commits
mailing list