Author: jmorliaguet Date: Fri Jun 30 15:10:10 2006 New Revision: 3575 Modified: cpsskins/branches/paris-sprint-2006/configuration/widgets/metaconfigure.py cpsskins/branches/paris-sprint-2006/standard/filters/widget/__init__.py
Log: - register the basic widget view correctly Modified: cpsskins/branches/paris-sprint-2006/configuration/widgets/metaconfigure.py ============================================================================== --- cpsskins/branches/paris-sprint-2006/configuration/widgets/metaconfigure.py (original) +++ cpsskins/branches/paris-sprint-2006/configuration/widgets/metaconfigure.py Fri Jun 30 15:10:10 2006 @@ -46,7 +46,8 @@ widget_name = '%s-%s' % (engine, name) if basic: - classImplements(view, IBasicWidgetView) + adapter(_context=_context, factory=(view,), provides=IBasicWidgetView, + for_=(for_, IBrowserRequest)) # register widgets utility(_context=_context, provides=configuration.IWidget, Modified: cpsskins/branches/paris-sprint-2006/standard/filters/widget/__init__.py ============================================================================== --- cpsskins/branches/paris-sprint-2006/standard/filters/widget/__init__.py (original) +++ cpsskins/branches/paris-sprint-2006/standard/filters/widget/__init__.py Fri Jun 30 15:10:10 2006 @@ -80,12 +80,11 @@ "Falling back to the basic widget view.", repr(info.element), repr(data)) - factory = queryMultiAdapter(objects=(data, request), - interface=IBasicWidgetView) + factory = queryMultiAdapter((data, request), IBasicWidgetView) if factory is None: logger.warning("No basic widget view found for '%s'.", - repr(info.element)) + repr(info.element)) return markup markup = factory(markup=markup, info=info) -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins