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

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Oct 11 09:15:13 EDT 2007


Author: justi9
Date: 2007-10-11 09:15:13 -0400 (Thu, 11 Oct 2007)
New Revision: 1005

Modified:
   mgmt/cumin/python/cumin/exchange.py
   mgmt/cumin/python/cumin/exchange.strings
Log:
Adds a binding add action to exchanges.  It's only stub right now.



Modified: mgmt/cumin/python/cumin/exchange.py
===================================================================
--- mgmt/cumin/python/cumin/exchange.py	2007-10-11 13:06:56 UTC (rev 1004)
+++ mgmt/cumin/python/cumin/exchange.py	2007-10-11 13:15:13 UTC (rev 1005)
@@ -136,6 +136,10 @@
     def render_title(self, session, exchange):
         return "Bindings (%i)" % len(exchange.binding_items())
 
+    def render_add_binding_href(self, session, exchange):
+        branch = session.branch()
+        return branch.marshal()
+
     def get_items(self, session, exchange):
         return sorted(exchange.binding_items(), cmp,
                       lambda x: x.get_queue().name)

Modified: mgmt/cumin/python/cumin/exchange.strings
===================================================================
--- mgmt/cumin/python/cumin/exchange.strings	2007-10-11 13:06:56 UTC (rev 1004)
+++ mgmt/cumin/python/cumin/exchange.strings	2007-10-11 13:15:13 UTC (rev 1005)
@@ -88,13 +88,18 @@
 </div>
 
 [ExchangeBindingSet.html]
+<ul class="actions">
+  <li><a href="{add_binding_href}">Add Binding</a></li>
+</ul>
+
 <table class="ExchangeBindingSet mobjects">
   <tr>
     <th>Queue</th>
     <th>Routing Key</th>
     <th></th>
   </tr>
-{items}
+
+  {items}
 </table>
 
 [ExchangeBindingSet.item_html]




More information about the rhmessaging-commits mailing list