[rhmessaging-commits] rhmessaging commits: r1346 - mgmt/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Nov 20 16:24:45 EST 2007


Author: justi9
Date: 2007-11-20 16:24:45 -0500 (Tue, 20 Nov 2007)
New Revision: 1346

Modified:
   mgmt/cumin/python/cumin/widgets.py
Log:
Turn status back on, though without proper data.



Modified: mgmt/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/cumin/python/cumin/widgets.py	2007-11-20 21:21:40 UTC (rev 1345)
+++ mgmt/cumin/python/cumin/widgets.py	2007-11-20 21:24:45 UTC (rev 1346)
@@ -142,13 +142,12 @@
             return "mstatus green"
 
     def render_status_info(self, session, object):
-        if hasattr(object, "errors"):
-            error_count = len(object.errors)
-            warning_count = len(object.warnings)
-        
-            return "%i error%s, %i warning%s" % \
-                   (error_count, ess(error_count),
-                    warning_count, ess(warning_count))
+        error_count = 0 #XXX len(object.errors)
+        warning_count = 0 #XXX len(object.warnings)
+    
+        return "%i error%s, %i warning%s" % \
+               (error_count, ess(error_count),
+                warning_count, ess(warning_count))
 
 class CuminChartPage(Page):
     def __init__(self, app, name):




More information about the rhmessaging-commits mailing list