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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Feb 24 18:58:29 CET 2010


Author: bh
Date: 2010-02-24 18:58:22 +0100 (Wed, 24 Feb 2010)
New Revision: 1761

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/lib/renderer.py
Log:
* mpulsweb/lib/renderer.py: Remove some more commented out code.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-24 17:53:47 UTC (rev 1760)
+++ wasko/branches/2.0/ChangeLog	2010-02-24 17:58:22 UTC (rev 1761)
@@ -1,5 +1,9 @@
 2010-02-24  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/lib/renderer.py: Remove some more commented out code.
+
+2010-02-24  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/lib/renderer.py (ErrorRenderer.render): Remove
 	commented outcode
 

Modified: wasko/branches/2.0/mpulsweb/lib/renderer.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-02-24 17:53:47 UTC (rev 1760)
+++ wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-02-24 17:58:22 UTC (rev 1761)
@@ -606,15 +606,6 @@
                        **SET_MODIFICATION_ATTRS))
         self.stateStack.append(str(node.getValue()))
         out.append(self._renderRecursive(meta, False, ChoiceContainer))
-        #for child in meta.children:
-        #    if isinstance(child, data.ExternalChoiceListLeaf):
-        #        out.extend(self._renderExternalChoiceList(child))
-        #    value = child.getValue()
-        #    label = child.getDescription()
-        #    selected = (value == self.stateStack[-1]) and 'selected="selected"' or ''
-        #    if label:
-        #        out.append('<option value="%s" %s>%s</option>' % (value, selected, label))
-
         self.stateStack.pop()
         out.append('</select>')
         out.append('<br>')
@@ -822,7 +813,6 @@
             txt = c.render(doBreak)
             if txt:
                 out.append(txt)
-                #if doBreak: out.append('<br class="newline">\n')
         return "".join(out)
 
 
@@ -924,10 +914,6 @@
         page_name = meta.getName()
         tree = page.getInstanceTree()
 
-        #errors_list = [kv for kv in self.error_items.iteritems() if kv[1].page == page_name]
-        #errors_list = [kv for kv in self.error_items.iteritems()]
-        #order = dict([(w.getName(), idx) for idx, w in enumerate(page.allWidgets())])
-
         out = []
 
         if self.error_items:



More information about the Mpuls-commits mailing list