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

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Dec 4 15:57:47 EST 2007


Author: justi9
Date: 2007-12-04 15:57:47 -0500 (Tue, 04 Dec 2007)
New Revision: 1426

Modified:
   mgmt/cumin/python/cumin/queue.py
Log:
Fix old dummy data model leftovers.



Modified: mgmt/cumin/python/cumin/queue.py
===================================================================
--- mgmt/cumin/python/cumin/queue.py	2007-12-04 20:55:58 UTC (rev 1425)
+++ mgmt/cumin/python/cumin/queue.py	2007-12-04 20:57:47 UTC (rev 1426)
@@ -210,20 +210,22 @@
 
     def render_item_href(self, session, binding):
         branch = session.branch()
-        self.page().show_exchange(branch, binding.get_exchange())
+        self.page().show_exchange(branch, binding.exchange)
         return branch.marshal()
     
     def render_item_name(self, session, binding):
-        return binding.get_exchange().name
+        return binding.exchange.name
 
     def render_item_binding_key(self, session, binding):
-        return binding.binding_key
+        return binding.bindingKey
 
     def render_item_messages_matched(self, session, binding):
-        return binding.get_measurement("msgMatched").get_value()
+        #stat = self.app.model.binding.get_stat("msgMatched")
+        return binding.statsCurr.msgMatched #XXX
 
     def render_item_messages_matched_rate(self, session, binding):
-        value = binding.get_measurement("msgMatched").get_rate()
+        #stat = self.app.model.binding.get_stat("msgMatched")
+        value = binding.statsCurr.msgMatched #XXX
         return fmt_rate(value, "msg", "sec")
 
 class QueueForm(CuminForm):




More information about the rhmessaging-commits mailing list