[Mpuls-commits] r468 - in wasko/trunk: . waskaweb/templates/caselifetime
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Apr 3 10:56:00 CEST 2009
Author: teichmann
Date: 2009-04-03 10:56:00 +0200 (Fri, 03 Apr 2009)
New Revision: 468
Modified:
wasko/trunk/ChangeLog.txt
wasko/trunk/waskaweb/templates/caselifetime/overview.mako
Log:
Fix for issue137
Modified: wasko/trunk/ChangeLog.txt
===================================================================
--- wasko/trunk/ChangeLog.txt 2009-04-03 06:46:54 UTC (rev 467)
+++ wasko/trunk/ChangeLog.txt 2009-04-03 08:56:00 UTC (rev 468)
@@ -1,3 +1,10 @@
+2009-04-02 Sascha L. Teichmann <teichmann at intevation.de>
+
+ Fix for issue137
+
+ * waskaweb/templates/caselifetime/overview.mako: extra mapping
+ for "anmerkungen".
+
2009-04-03 Torsten Irlaender <torsten.irlaender at intevation.de>
Fix for issue137
Modified: wasko/trunk/waskaweb/templates/caselifetime/overview.mako
===================================================================
--- wasko/trunk/waskaweb/templates/caselifetime/overview.mako 2009-04-03 06:46:54 UTC (rev 467)
+++ wasko/trunk/waskaweb/templates/caselifetime/overview.mako 2009-04-03 08:56:00 UTC (rev 468)
@@ -2,7 +2,18 @@
## In der Hoffnung das der Workflow sich als so umständlich herausstellt, dass
## der dazu gehördende, noch fürchterlichere Code direkt wieder entfernt werden kann.
<%inherit file="/casemanagement/main.mako" />
-<%! import waskaweb.lib.filters as F %>
+<%!
+import waskaweb.lib.filters as F
+from pylons import g
+
+EXTRA_MAPPING = { u"anmerkungen": u"Begründung für die Wiederaufnahme" }
+
+def findDescription(key):
+ try:
+ return EXTRA_MAPPING[key]
+ except KeyError:
+ return g.formedTree.getDescription(key)
+%>
<%def name="buildNavipath()">
${parent.buildNavipath()}
<li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
@@ -19,7 +30,7 @@
<h1><a name="error_list">Fehlerhafte Formulareingabe</a></h1>
<ul>
% for key, err in c.form_errors.iteritems():
- <li><a href="#${key}">${g.formedTree.getDescription(key) | h}</a>: ${err | h}</li>
+ <li><a href="#${key}">${findDescription(key) | h}</a>: ${err | h}</li>
% endfor
</ul>
</div>
More information about the Mpuls-commits
mailing list