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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Feb 26 17:45:25 CET 2010


Author: bh
Date: 2010-02-26 17:45:21 +0100 (Fri, 26 Feb 2010)
New Revision: 1855

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/lib/renderer.py
Log:
* mpulsweb/lib/renderer.py (ViewRenderer._renderDummyGroup)
(ViewRenderer._renderDummyLeaf): Removed.  Unused.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-26 15:36:28 UTC (rev 1854)
+++ wasko/branches/2.0/ChangeLog	2010-02-26 16:45:21 UTC (rev 1855)
@@ -1,5 +1,10 @@
 2010-02-26  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/lib/renderer.py (ViewRenderer._renderDummyGroup)
+	(ViewRenderer._renderDummyLeaf): Removed.  Unused.
+
+2010-02-26  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/lib/renderer.py (tag): Better handling of boolean
 	attributes.  Now attribute values are converted to strings for
 	most attributes and only treated as booleans for a predefined set

Modified: wasko/branches/2.0/mpulsweb/lib/renderer.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-02-26 15:36:28 UTC (rev 1854)
+++ wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-02-26 16:45:21 UTC (rev 1855)
@@ -307,43 +307,6 @@
             out.append('</span>')
         return "".join(out)
 
-    def _renderDummyGroup(self, node):
-        meta = self._getMeta(node)
-        description = meta.getDescription()
-
-        out = []
-        if meta.isInvisible():
-            if description:
-                out.append("<!-- %s -->\n" % escape(description))
-
-            out.append(self._renderRecursive(node))
-        else:
-            out.append('<div class="widget">')
-            out.append(self._renderRecursive(node))
-            out.append("</div>")
-
-        self.toTarget(Item("".join(out)), meta.getTarget())
-
-    def _renderDummyLeaf(self, node):
-        meta = self._getMeta(node)
-        description = meta.getDescription()
-        flags = meta.getFlags()
-        name = node.getIdentifier()
-        help = node.getAnnotation([])
-        data = node.getValue()
-        error = node.hasErrors()
-        warn = node.hasWarning()
-        css_class = ['field']
-        out = []
-
-        out.append(self._renderLabel(node))
-        out.append(self._renderAttributes(node))
-        out.append('<br>')
-        out.append(tag("input", name=name, id=name, value=data, type="text"))
-        out.append('<br>')
-        out.append(self._renderErrors(node))
-        self.toTarget(Item("".join(out)), meta.getTarget())
-
     def _renderGroup(self, node):
         meta = self._getMeta(node)
         description = meta.getDescription()



More information about the Mpuls-commits mailing list