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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Mar 4 11:00:52 CET 2010


Author: bh
Date: 2010-03-04 11:00:51 +0100 (Thu, 04 Mar 2010)
New Revision: 1887

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/lib/renderer.py
Log:
* mpulsweb/lib/renderer.py (tag): Render the boolean attributes as
e.g. checked="checked" instead of just using checked.  This is
more correct and htmlfill expects this.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-03-03 18:06:34 UTC (rev 1886)
+++ wasko/branches/2.0/ChangeLog	2010-03-04 10:00:51 UTC (rev 1887)
@@ -1,3 +1,9 @@
+2010-03-04  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/lib/renderer.py (tag): Render the boolean attributes as
+	e.g. checked="checked" instead of just using checked.  This is
+	more correct and htmlfill expects this.
+
 2010-03-03  Bernhard Herzog  <bh at intevation.de>
 
 	* mpulsweb/lib/navigation.py (NavigationTree.render): Avoid

Modified: wasko/branches/2.0/mpulsweb/lib/renderer.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-03-03 18:06:34 UTC (rev 1886)
+++ wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-03-04 10:00:51 UTC (rev 1887)
@@ -106,7 +106,7 @@
             name = name[:-1]
         if name in _booleans:
             if value:
-                out.append(" " + name)
+                out.append(" %s=\"%s\"" % (name, name))
         else:
             if value is None:
                 value = ""



More information about the Mpuls-commits mailing list