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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Apr 22 13:51:29 CEST 2010


Author: roland
Date: 2010-04-22 13:51:28 +0200 (Thu, 22 Apr 2010)
New Revision: 2481

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/lib/renderer.py
Log:
Wald issue #1450: Improved readability of warnings and errors

Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-04-22 11:03:50 UTC (rev 2480)
+++ wasko/branches/2.0/ChangeLog	2010-04-22 11:51:28 UTC (rev 2481)
@@ -31,6 +31,8 @@
 	* mpulsweb/controllers/case.py: Wald issue #1424: Typo in dialog
 	* mpulsweb/public/styles/print.css: Wald issue #1430: improvements to
 	printer friendly page
+	* mpulsweb/lib/renderer.py: Wald issue #1450: Improved readability of
+	warnings and errors
 
 
 2010-04-21  Torsten Irländer <torsten.irlaender at intevation.de>

Modified: wasko/branches/2.0/mpulsweb/lib/renderer.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-04-22 11:03:50 UTC (rev 2480)
+++ wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-04-22 11:51:28 UTC (rev 2481)
@@ -1064,14 +1064,16 @@
             for v in values:
                 out.append('<li>')
                 out.append(tag("a", href="/formularpage/undo/%s" % k))
-                out.append(tag("img", src="/images/icons/formular/undo.png",
-                               border="0", alt="undo",
-                               title=_('Restore last valid value'),
-                               _close=True))
+                out.append(tag("img",
+                               src    = "/images/icons/formular/undo.png",
+                               border = "0",
+                               alt    = "undo",
+                               title  = _('Restore last valid value'),
+                               _close = True))
                 out.append('</a>')
                 out.append(tag("a", class_="error", href="#f_%s" % k))
-                out.append("%s: %s" % (escape(description), escape(v)))
-                out.append("</a>")
+                out.append("%s:</a>" % escape(description))
+                out.append(" %s" % (escape(v)))
                 out.append("</li>")
 
         out.append('</ol>')



More information about the Mpuls-commits mailing list