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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Mar 9 18:20:03 CET 2010


Author: bh
Date: 2010-03-09 18:20:01 +0100 (Tue, 09 Mar 2010)
New Revision: 1917

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/lib/renderer.py
Log:
* mpulsweb/lib/renderer.py
(ViewRenderer._renderExternalChoiceList): Actually insert the
rendered external choices into the output.  Now the contents of
the external choices are visible in the web interface.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-03-09 14:37:33 UTC (rev 1916)
+++ wasko/branches/2.0/ChangeLog	2010-03-09 17:20:01 UTC (rev 1917)
@@ -1,3 +1,10 @@
+2010-03-09  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/lib/renderer.py
+	(ViewRenderer._renderExternalChoiceList): Actually insert the
+	rendered external choices into the output.  Now the contents of
+	the external choices are visible in the web interface.
+
 2010-03-08  Torsten Irländer <torsten.irlaender at intevation.de>
 
 	* mpulsweb/lib/validators.py (DateOrder): New Validator to check to

Modified: wasko/branches/2.0/mpulsweb/lib/renderer.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-03-09 14:37:33 UTC (rev 1916)
+++ wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-03-09 17:20:01 UTC (rev 1917)
@@ -765,7 +765,8 @@
                                selected=(value == self.stateStack[-1])))
                 out.append(escape(child.getDescription()))
                 out.append("</option>")
-        return out
+        self.toTarget(Text("\n".join(out)),
+                      self._getMeta(choiceList).getTarget())
 
     def _renderChild(self, child):
         meta = self._getMeta(child)



More information about the Mpuls-commits mailing list