[Mpuls-commits] r1881 - in wasko/branches/2.0: . mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Mar 1 16:26:42 CET 2010


Author: bh
Date: 2010-03-01 16:26:38 +0100 (Mon, 01 Mar 2010)
New Revision: 1881

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/lib/renderer.py
Log:
* mpulsweb/lib/renderer.py (RepeatGroupRenderer.render_digest):
Log a warning if no digest specification can be found for the
repeat group


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-03-01 14:17:28 UTC (rev 1880)
+++ wasko/branches/2.0/ChangeLog	2010-03-01 15:26:38 UTC (rev 1881)
@@ -1,5 +1,11 @@
 2010-03-01  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/lib/renderer.py (RepeatGroupRenderer.render_digest):
+	Log a warning if no digest specification can be found for the
+	repeat group
+
+2010-03-01  Bernhard Herzog  <bh at intevation.de>
+
 	* jmd.json: Add JMD repeat group digest configuration
 
 2010-03-01  Bernhard Herzog  <bh at intevation.de>

Modified: wasko/branches/2.0/mpulsweb/lib/renderer.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-03-01 14:17:28 UTC (rev 1880)
+++ wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-03-01 15:26:38 UTC (rev 1881)
@@ -806,7 +806,9 @@
         fields = self.rg_digests.get(self._getMeta(rg).getName(), [])
 
         out.append('<table class="rgdigest">')
-        if len(fields) < 1:
+        if not fields:
+            log.warning("No digest specification for repeat group %r",
+                        rg.getIdentifier())
             out.append('<tr><td>%s</td></tr>' % escape(rg.getIdentifier()))
         else:
             for num, field in enumerate(fields):



More information about the Mpuls-commits mailing list