[Mpuls-commits] r5640 - base/trunk/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Nov 22 13:11:09 CET 2011


Author: ludwig
Date: 2011-11-22 13:11:08 +0100 (Tue, 22 Nov 2011)
New Revision: 5640

Modified:
   base/trunk/mpulsweb/controllers/case_bundle.py
Log:
Issue 2689: in build_case_list case overview objects are formated before
escaped and displayed. This fixes an exception which happens if a date object
is an argument of the escape function.


Modified: base/trunk/mpulsweb/controllers/case_bundle.py
===================================================================
--- base/trunk/mpulsweb/controllers/case_bundle.py	2011-11-22 11:17:29 UTC (rev 5639)
+++ base/trunk/mpulsweb/controllers/case_bundle.py	2011-11-22 12:11:08 UTC (rev 5640)
@@ -11,7 +11,7 @@
 
 from mpulsweb.lib.translation import _, ungettext
 from mpulsweb.lib.base import c, render, request, session, BaseController
-from mpulsweb.lib.helpers import url_for
+from mpulsweb.lib.helpers import url_for, format_object
 from mpulsweb.lib.security import checkRole, check_feature
 from mpulsweb.lib.validators import BundleActionForm, SetBundleEditorForm, \
     SetBundleStandinForm, ExportSelectorValidator
@@ -694,7 +694,7 @@
     overview_fields = cases[0].get_overview_fields()
     for case in cases:
         list.append("<li>%s</li>" % ", ".join([
-            escape(NA(case.get_value(f.name))) for f in overview_fields]))
+            escape(format_object(NA(case.get_value(f.name)))) for f in overview_fields]))
     list.append("</ul>")
     return list
 



More information about the Mpuls-commits mailing list