moksha/widgets/all.py | 15 ++++++++------- setup.cfg | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-)
New commits: commit 265de7808fc090b2136bdfb6124233bb6258a85c Author: Luke Macken lmacken@redhat.com Date: Thu Feb 5 00:58:25 2009 -0500
Make sure we pull in globals and menus into the toscawidgets.widgets entry point
diff --git a/moksha/widgets/all.py b/moksha/widgets/all.py index 3842215..36834f3 100644 --- a/moksha/widgets/all.py +++ b/moksha/widgets/all.py @@ -27,10 +27,11 @@ from inspect import isclass
__all__ = []
-for widget_entry in pkg_resources.iter_entry_points('moksha.widget'): - widget_class = widget_entry.load() - if isclass(widget_class): - widget = widget_class(widget_entry.name) - else: - widget = widget_class - __all__.append(widget) +for entry_point in ('moksha.widget', 'moksha.menu', 'moksha.global'): + for widget_entry in pkg_resources.iter_entry_points(entry_point): + widget_class = widget_entry.load() + if isclass(widget_class): + widget = widget_class(widget_entry.name) + else: + widget = widget_class + __all__.append(widget) diff --git a/setup.cfg b/setup.cfg index ddbcd3e..08503a6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,7 +31,7 @@ output_dir = moksha/i18n previous = true
[archive_tw_resources] -output = tw_static +output = toscawidgets distributions = moksha #compresslevel = 2 onepass = true
moksha-commits@lists.fedorahosted.org