[rhmessaging-commits] rhmessaging commits: r3343 - mgmt/trunk/cumin/python/cumin/grid.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed Apr 29 10:24:38 EDT 2009


Author: eallen
Date: 2009-04-29 10:24:38 -0400 (Wed, 29 Apr 2009)
New Revision: 3343

Modified:
   mgmt/trunk/cumin/python/cumin/grid/pool.py
   mgmt/trunk/cumin/python/cumin/grid/pool.strings
Log:
Changed pool status text to number of slots available (Unclaimed and Idle)

Modified: mgmt/trunk/cumin/python/cumin/grid/pool.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/grid/pool.py	2009-04-28 19:57:33 UTC (rev 3342)
+++ mgmt/trunk/cumin/python/cumin/grid/pool.py	2009-04-29 14:24:38 UTC (rev 3343)
@@ -411,14 +411,14 @@
     def render_status(self, session, pool):
         action = self.app.model.pool.poolstatus
         record = action.get_stat_record(session, pool)
-        if record and ("idl" in record) and ("all" in record):
-            if record["idl"] and record["all"]: # not None
+        if record and ("available" in record) and ("all" in record):
+            if record["available"] and record["all"]: # not None
                 writer = Writer()
                 self.item_tmpl.render(writer, session, record)
                 return writer.to_string()
 
-    def render_idle(self, session, record):
-        return record["idl"]
+    def render_available(self, session, record):
+        return record["available"]
 
     def render_total(self, session, record):
         return record["all"]

Modified: mgmt/trunk/cumin/python/cumin/grid/pool.strings
===================================================================
--- mgmt/trunk/cumin/python/cumin/grid/pool.strings	2009-04-28 19:57:33 UTC (rev 3342)
+++ mgmt/trunk/cumin/python/cumin/grid/pool.strings	2009-04-29 14:24:38 UTC (rev 3343)
@@ -42,7 +42,7 @@
 
 [PoolStatus.status_html]
 <div>
-  <span>{idle}</span> of <span>{total}</span> slots idle
+  <span>{available}</span> of <span>{total}</span> slots available
 </div>
 
 [PoolStats.css]




More information about the rhmessaging-commits mailing list