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

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Oct 11 09:06:56 EDT 2007


Author: justi9
Date: 2007-10-11 09:06:56 -0400 (Thu, 11 Oct 2007)
New Revision: 1004

Modified:
   mgmt/cumin/python/cumin/queue.py
   mgmt/cumin/python/cumin/queue.strings
Log:
Moves the add binding action closer to the binding list.



Modified: mgmt/cumin/python/cumin/queue.py
===================================================================
--- mgmt/cumin/python/cumin/queue.py	2007-10-11 03:09:53 UTC (rev 1003)
+++ mgmt/cumin/python/cumin/queue.py	2007-10-11 13:06:56 UTC (rev 1004)
@@ -168,15 +168,15 @@
         self.page().show_queue(branch, queue).show_remove(branch)
         return branch.marshal()
 
+class QueueBindingSet(ItemSet):
+    def render_title(self, session, queue):
+        return "Bindings (%i)" % len(queue.binding_items())
+
     def render_add_binding_href(self, session, queue):
         branch = session.branch()
         self.page().show_queue(branch, queue).show_binding_add(branch)
         return branch.marshal()
 
-class QueueBindingSet(ItemSet):
-    def render_title(self, session, queue):
-        return "Bindings (%i)" % len(queue.binding_items())
-
     def get_items(self, session, queue):
         return sorted(queue.binding_items(), cmp,
                       lambda x: x.get_exchange().name)

Modified: mgmt/cumin/python/cumin/queue.strings
===================================================================
--- mgmt/cumin/python/cumin/queue.strings	2007-10-11 03:09:53 UTC (rev 1003)
+++ mgmt/cumin/python/cumin/queue.strings	2007-10-11 13:06:56 UTC (rev 1004)
@@ -117,20 +117,24 @@
   <ul class="actions">
     <li><a href="{edit_queue_href}">Edit Queue</a></li>
     <li><a href="{remove_queue_href}">Remove Queue</a></li>
-    <li><a href="{add_binding_href}">Add Binding</a></li>
   </ul>
 
   {tabs}
 </div>
 
 [QueueBindingSet.html]
+  <ul class="actions">
+    <li><a href="{add_binding_href}">Add Binding</a></li>
+  </ul>
+
 <table class="QueueBindingSet mobjects">
   <tr>
     <th>Exchange</th>
     <th>Routing Key</th>
     <th></th>
   </tr>
-{items}
+
+  {items}
 </table>
 
 [QueueBindingSet.item_html]




More information about the rhmessaging-commits mailing list