[Mpuls-commits] r3543 - base/trunk/mpulsweb/templates/casemanagement
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Sep 7 11:32:43 CEST 2010
Author: torsten
Date: 2010-09-07 11:32:43 +0200 (Tue, 07 Sep 2010)
New Revision: 3543
Modified:
base/trunk/mpulsweb/templates/casemanagement/caselist.mako
Log:
* mpulsweb/templates/casemanagement/caselist.mako: Use new config var "overview_length" to shorten field dynamically.
Modified: base/trunk/mpulsweb/templates/casemanagement/caselist.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/caselist.mako 2010-09-07 09:31:39 UTC (rev 3542)
+++ base/trunk/mpulsweb/templates/casemanagement/caselist.mako 2010-09-07 09:32:43 UTC (rev 3543)
@@ -23,9 +23,8 @@
f = d.name
fn = d.overview_label
fs = d.overview_style
- print f
field = (fn,f,fs, all_roles,
- lambda case, f=f: h.shorten(h.format_object(case.get_value(f)), 15))
+ lambda case, d=d: h.shorten(h.format_object(case.get_value(d.name)), d.overview_length))
fields.append(field)
# Extend fields with default fields in overview
More information about the Mpuls-commits
mailing list