[rhmessaging-commits] rhmessaging commits: r1370 - mgmt/cumin/python/wooly.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Tue Nov 27 11:26:44 EST 2007
Author: justi9
Date: 2007-11-27 11:26:44 -0500 (Tue, 27 Nov 2007)
New Revision: 1370
Modified:
mgmt/cumin/python/wooly/__init__.py
Log:
Fixes a bug in string resolution. We weren't getting to strings of certain
superclasses' modules.
Modified: mgmt/cumin/python/wooly/__init__.py
===================================================================
--- mgmt/cumin/python/wooly/__init__.py 2007-11-27 15:59:34 UTC (rev 1369)
+++ mgmt/cumin/python/wooly/__init__.py 2007-11-27 16:26:44 UTC (rev 1370)
@@ -28,9 +28,14 @@
self.__path = None
self.__page = None
self.child_index = None
-
+
app.add_widget(self)
+ for cls in self.__class__.__mro__:
+ app.add_widget_class(cls)
+ if cls is Widget:
+ break
+
def name(self):
return self.__name
@@ -399,8 +404,10 @@
raise Exception()
self.widgets.append(widget)
- self.widget_classes.add(widget.__class__)
+ def add_widget_class(self, cls):
+ self.widget_classes.add(cls)
+
def get_widget(self, key):
if not self.widget_index:
index = dict()
@@ -440,6 +447,8 @@
if not self.cached_css:
writer = Writer()
+ print self.widget_classes
+
for cls in sorted(self.widget_classes):
strs = cls.get_module_strings()
More information about the rhmessaging-commits
mailing list