[rhmessaging-commits] rhmessaging commits: r1042 - in mgmt/cumin/python: wooly and 1 other directory.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Sat Oct 13 11:55:12 EDT 2007


Author: justi9
Date: 2007-10-13 11:55:12 -0400 (Sat, 13 Oct 2007)
New Revision: 1042

Modified:
   mgmt/cumin/python/cumin/page.py
   mgmt/cumin/python/wooly/__init__.py
Log:
Adds a default frame method to Page, and uses it to make MainFrame the
default for CuminPage.



Modified: mgmt/cumin/python/cumin/page.py
===================================================================
--- mgmt/cumin/python/cumin/page.py	2007-10-13 15:48:25 UTC (rev 1041)
+++ mgmt/cumin/python/cumin/page.py	2007-10-13 15:55:12 UTC (rev 1042)
@@ -25,6 +25,7 @@
 
         self.main = MainFrame(app, "main")
         self.add_child(self.main)
+        self.set_default_frame(self.main)
 
     class FramesAttribute(Attribute):
         def get_default(self, session):

Modified: mgmt/cumin/python/wooly/__init__.py
===================================================================
--- mgmt/cumin/python/wooly/__init__.py	2007-10-13 15:48:25 UTC (rev 1041)
+++ mgmt/cumin/python/wooly/__init__.py	2007-10-13 15:55:12 UTC (rev 1042)
@@ -285,8 +285,8 @@
         super(Page, self).__init__(app, name)
 
         self.frame = self.FrameParameter(app, "frame")
-        self.frame.set_default(self)
         self.add_parameter(self.frame)
+        self.set_default_frame(self)
 
         self.cached_parameters = dict()
 
@@ -307,6 +307,9 @@
     def get_current_frame(self, session):
         return self.frame.get(session)
 
+    def set_default_frame(self, frame):
+        self.frame.set_default(frame)
+
     def get_saved_parameters(self, session):
         frame = self.get_current_frame(session)
 




More information about the rhmessaging-commits mailing list