[Mpuls-commits] r2829 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon May 31 12:04:50 CEST 2010
Author: torsten
Date: 2010-05-31 12:04:46 +0200 (Mon, 31 May 2010)
New Revision: 2829
Modified:
base/trunk/mpulsweb/controllers/caseappointment.py
Log:
* mpulsweb/controllers/caseappointment.py (CaseappointmentController.newAction): Do not loose values on form errors.
Modified: base/trunk/mpulsweb/controllers/caseappointment.py
===================================================================
--- base/trunk/mpulsweb/controllers/caseappointment.py 2010-05-31 10:04:37 UTC (rev 2828)
+++ base/trunk/mpulsweb/controllers/caseappointment.py 2010-05-31 10:04:46 UTC (rev 2829)
@@ -93,9 +93,9 @@
c.form_result = error.value
c.form_errors = error.error_dict or {}
form = render('/casemanagement/newAppointment.mako')
- return formencode.htmlfill.render(form, defaults=form_result,
+ return formencode.htmlfill.render(form, defaults=c.form_result,
auto_insert_errors=False,
- errors=form_errors)
+ errors=c.form_errors)
except Exception, e:
log.exception(e)
raise
More information about the Mpuls-commits
mailing list