[Mpuls-commits] r5129 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jun 22 16:33:30 CEST 2011
Author: torsten
Date: 2011-06-22 16:33:29 +0200 (Wed, 22 Jun 2011)
New Revision: 5129
Modified:
base/trunk/mpulsweb/controllers/case_bundle.py
Log:
Improved fix for issue2005
Modified: base/trunk/mpulsweb/controllers/case_bundle.py
===================================================================
--- base/trunk/mpulsweb/controllers/case_bundle.py 2011-06-22 14:06:43 UTC (rev 5128)
+++ base/trunk/mpulsweb/controllers/case_bundle.py 2011-06-22 14:33:29 UTC (rev 5129)
@@ -227,10 +227,8 @@
cases = bundle.getCases()
overview_fields = cases[0].get_overview_fields()
for case in cases:
- x = []
- for f in overview_fields:
- x.append(case.__getattr__(f.alias))
- list.append("<li>%s</li>" % ", ".join([escape(NA(y)) for y in x]))
+ list.append("<li>%s</li>" % ", ".join([
+ escape(NA(case.get_value(f.name))) for f in overview_fields]))
list.append("</ul>")
return list
More information about the Mpuls-commits
mailing list