moksha/widgets/all.py | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 28e8d3b848847bf64bd326c845df9d45ad804c16 Author: Luke Macken lmacken@redhat.com Date: Fri Feb 6 00:35:55 2009 -0500
Pull in the widgetbrowser's widgets in the `moksha.widgets.all` module
diff --git a/moksha/widgets/all.py b/moksha/widgets/all.py index ef3b8e8..c9152fc 100644 --- a/moksha/widgets/all.py +++ b/moksha/widgets/all.py @@ -23,6 +23,8 @@ which archives all of the resources used by all ToscaWidgets. """
import pkg_resources + +from tw.api import Widget from inspect import isclass
__all__ = [] @@ -39,3 +41,8 @@ for entry_point in ('moksha.widget', 'moksha.menu', 'moksha.global'): # Other stuff that isn't exposed from moksha.widgets.container import MokshaContainer __all__.append(MokshaContainer) + +from widgetbrowser import widgets +for obj in dir(widgets): + if isinstance(getattr(widgets, obj), Widget): + __all__.append(obj)
moksha-commits@lists.fedorahosted.org