[Mpuls-commits] r5412 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Oct 6 16:06:03 CEST 2011
Author: torsten
Date: 2011-10-06 16:06:02 +0200 (Thu, 06 Oct 2011)
New Revision: 5412
Modified:
base/trunk/mpulsweb/controllers/evaluate.py
Log:
Store id of the evalation in context variable. It is used to render the link
to reset the saveed filter for evaluations correctly.
Modified: base/trunk/mpulsweb/controllers/evaluate.py
===================================================================
--- base/trunk/mpulsweb/controllers/evaluate.py 2011-10-06 12:12:03 UTC (rev 5411)
+++ base/trunk/mpulsweb/controllers/evaluate.py 2011-10-06 14:06:02 UTC (rev 5412)
@@ -135,6 +135,7 @@
defaults = EvaluationFormValidator().from_python(evaloptions)
c.phases = PhaseFactory().build()
+ c.eval_config_id = id
form = render('/evaluation/evaluate.mako')
return formencode.htmlfill.render(form, defaults=defaults,
errors={}, auto_insert_errors=False)
@@ -247,6 +248,7 @@
form_result = error.value
form_errors = error.error_dict or {}
c.phases = PhaseFactory().build()
+ c.eval_config_id = id
c.evalconfig = EvaluationConfig(config_file, None, None, None,
None, None, None, None, None)
form = render('/evaluation/evaluate.mako')
More information about the Mpuls-commits
mailing list