[Mpuls-commits] r569 - wasko/trunk/waskaweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Aug 4 14:54:08 CEST 2009


Author: torsten
Date: 2009-08-04 14:54:04 +0200 (Tue, 04 Aug 2009)
New Revision: 569

Modified:
   wasko/trunk/waskaweb/lib/renderer_new.py
Log:
Modified hasErrors() call.


Modified: wasko/trunk/waskaweb/lib/renderer_new.py
===================================================================
--- wasko/trunk/waskaweb/lib/renderer_new.py	2009-07-30 12:56:51 UTC (rev 568)
+++ wasko/trunk/waskaweb/lib/renderer_new.py	2009-08-04 12:54:04 UTC (rev 569)
@@ -184,7 +184,7 @@
     def _renderLabel(self, node, labeltag=True):
         meta = node.getMeta()
         out = []
-        error = node.hasError() and "error" or ""
+        error = node.hasErrors() and "error" or ""
         if labeltag:
             out.append('<label for="%s"><a class="%s" name="f_%s">%s</a></label>' % 
             (node.getIdentifier(), error, node.getIdentifier(),meta.getDescription()))
@@ -211,7 +211,7 @@
     def _renderErrors(self, node):
         meta = node.getMeta()
         out = []
-        if node.hasError():
+        if node.hasErrors():
             out.append('<span class="error">%s</span>' % node.getError())
         return "\n".join(out)
 
@@ -239,7 +239,7 @@
         name        = node.getIdentifier()
         help        = node.getAnnotation([])
         data        = node.getValue()
-        error       = node.hasError()
+        error       = node.hasErrors()
         warn        = node.hasWarning()
         css_class   = ['field']
         out = []



More information about the Mpuls-commits mailing list