Author: justi9
Date: 2007-10-12 17:58:53 -0400 (Fri, 12 Oct 2007)
New Revision: 1032
Modified:
mgmt/cumin/python/cumin/widgets.py
mgmt/cumin/python/wooly/__init__.py
Log:
Moves save_parameters from CuminFrame to Frame.
Modified: mgmt/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/cumin/python/cumin/widgets.py 2007-10-12 21:48:58 UTC (rev 1031)
+++ mgmt/cumin/python/cumin/widgets.py 2007-10-12 21:58:53 UTC (rev 1032)
@@ -15,12 +15,6 @@
return "<span class=\"none\">None</span>"
class CuminFrame(Frame, ModeSet):
- def save_parameters(self, session):
- frame = self.page().get_frame(session)
-
- if not frame or self is frame or self in frame.ancestors():
- super(CuminFrame, self).save_parameters(session)
-
def do_process(self, session, object):
self.page().get_frames(session).append(self)
Modified: mgmt/cumin/python/wooly/__init__.py
===================================================================
--- mgmt/cumin/python/wooly/__init__.py 2007-10-12 21:48:58 UTC (rev 1031)
+++ mgmt/cumin/python/wooly/__init__.py 2007-10-12 21:58:53 UTC (rev 1032)
@@ -288,6 +288,12 @@
if self.object:
return self.object.get(session)
+ def save_parameters(self, session):
+ frame = self.page().get_frame(session)
+
+ if not frame or self is frame or self in frame.ancestors():
+ super(Frame, self).save_parameters(session)
+
def do_process(self, session, object):
new_object = self.get_object(session)
super(Frame, self).do_process(session, new_object)
Show replies by date