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

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Mar 26 16:31:11 EDT 2009


Author: eallen
Date: 2009-03-26 16:31:11 -0400 (Thu, 26 Mar 2009)
New Revision: 3228

Modified:
   mgmt/trunk/cumin/python/cumin/queue.py
Log:
Made TopQueues aware when it's in full page mode. It will not shorten the name column in full page mode.

Modified: mgmt/trunk/cumin/python/cumin/queue.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/queue.py	2009-03-26 20:29:41 UTC (rev 3227)
+++ mgmt/trunk/cumin/python/cumin/queue.py	2009-03-26 20:31:11 UTC (rev 3228)
@@ -198,11 +198,13 @@
             broker = Identifiable(data["broker_id"])
             queue = Identifiable(data["id"])
 
+            big = self.parent.get_fullpage(session)
             branch = session.branch()
             self.page.main.broker.object.set(branch, broker)
             self.page.main.broker.queue.object.set(branch, queue)
             self.page.main.broker.queue.show(branch)
-            return fmt_link(branch.marshal(), fmt_shorten(data["name"]))
+            name = big and data["name"] or fmt_shorten(data["name"])
+            return fmt_link(branch.marshal(), name)
 
     class EnqueuesColumn(TopTableColumn):
         def render_title(self, session, data):




More information about the rhmessaging-commits mailing list