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

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Oct 7 09:34:55 EDT 2008


Author: eallen
Date: 2008-10-07 09:34:54 -0400 (Tue, 07 Oct 2008)
New Revision: 2598

Modified:
   mgmt/trunk/cumin/python/cumin/system.py
Log:
Switch to the Main System tab from the Grid->Job->System view

Modified: mgmt/trunk/cumin/python/cumin/system.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/system.py	2008-10-07 12:50:53 UTC (rev 2597)
+++ mgmt/trunk/cumin/python/cumin/system.py	2008-10-07 13:34:54 UTC (rev 2598)
@@ -31,7 +31,13 @@
         def render_content(self, session, data):
             system = Identifiable(data["id"])
             branch = session.branch()
-            self.frame.show_system(branch, system).show_view(branch)
+            #rather than use self.frame, force getting the
+            # system frame and showing the system tab. This
+            # is done because we can switch to the system
+            # frame from within the grid frame
+            frame = self.app.model.show_main(branch)
+            frame.show_system_tab(branch)
+            frame.show_system(branch, system).show_view(branch)
             return fmt_olink(branch, system, name=data["name"])
 
 class SystemFrame(CuminFrame):




More information about the rhmessaging-commits mailing list