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

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Feb 4 12:54:01 EST 2008


Author: justi9
Date: 2008-02-04 12:54:01 -0500 (Mon, 04 Feb 2008)
New Revision: 1637

Modified:
   mgmt/cumin/python/cumin/broker.py
Log:
Updates some of the broker form actions to syncUpdate and use the new
generic actions.



Modified: mgmt/cumin/python/cumin/broker.py
===================================================================
--- mgmt/cumin/python/cumin/broker.py	2008-02-04 14:29:52 UTC (rev 1636)
+++ mgmt/cumin/python/cumin/broker.py	2008-02-04 17:54:01 UTC (rev 1637)
@@ -686,6 +686,8 @@
                 if groups[i]:
                     reg.addBrokerGroup(groups[i])
 
+                reg.syncUpdate()
+
                 self.app.broker_connect_thread.prompt()
 
         self.process_cancel(session, model)
@@ -700,11 +702,11 @@
         self.page().set_redirect_url(session, branch.marshal())
 
     def process_submit(self, session, broker):
-        broker.destroySelf()
+        action = self.app.model.broker_registration.remove
+        action.invoke(broker)
 
         branch = session.branch()
-        frame = self.page().show_view(branch)
-        self.page().set_current_frame(branch, frame)
+        self.page().show_main(branch)
         self.page().set_redirect_url(session, branch.marshal())
 
     def render_submit_content(self, session, broker):




More information about the rhmessaging-commits mailing list