Author: justi9
Date: 2008-03-27 08:28:06 -0400 (Thu, 27 Mar 2008)
New Revision: 1801
Modified:
mgmt/cumin/python/cumin/page.py
mgmt/cumin/python/wooly/__init__.py
mgmt/cumin/python/wooly/widgets.py
Log:
Remove an obsolete feature of Widget
Modified: mgmt/cumin/python/cumin/page.py
===================================================================
--- mgmt/cumin/python/cumin/page.py 2008-03-27 04:49:04 UTC (rev 1800)
+++ mgmt/cumin/python/cumin/page.py 2008-03-27 12:28:06 UTC (rev 1801)
@@ -197,8 +197,6 @@
def __init__(self, app, name):
super(MainFrameTabs, self).__init__(app, name)
- self.html_class = "tabs"
-
self.selection = Parameter(app, "sel")
self.selection.default = "mtab"
self.add_parameter(self.selection)
@@ -207,6 +205,9 @@
#self.add_link(self.GridTab(app, "gtab"))
self.add_link(self.SystemsTab(app, "stab"))
+ def render_class(self, session):
+ return "tabs"
+
class Tab(Link):
def render_class(self, session):
if self.parent.selection.get(session) == self.name:
Modified: mgmt/cumin/python/wooly/__init__.py
===================================================================
--- mgmt/cumin/python/wooly/__init__.py 2008-03-27 04:49:04 UTC (rev 1800)
+++ mgmt/cumin/python/wooly/__init__.py 2008-03-27 12:28:06 UTC (rev 1801)
@@ -96,9 +96,6 @@
self.attributes = list()
self.parameters = list()
- # XXX get rid of this
- self.html_class = None
-
# These are set in the init() pass
self.ancestors = None
self.path = None
@@ -239,7 +236,7 @@
return self.path
def render_class(self, session, *args):
- return self.html_class
+ return None
def render_href(self, session, *args):
return session.marshal()
Modified: mgmt/cumin/python/wooly/widgets.py
===================================================================
--- mgmt/cumin/python/wooly/widgets.py 2008-03-27 04:49:04 UTC (rev 1800)
+++ mgmt/cumin/python/wooly/widgets.py 2008-03-27 12:28:06 UTC (rev 1801)
@@ -102,9 +102,6 @@
return link.render(session)
class Link(Widget):
- def render_class(self, session, *args):
- return self.html_class
-
def edit_session(self, session, *args):
pass
Show replies by date