Renamed base content provider class
authorThierry Florac <thierry.florac@onf.fr>
Wed, 13 Sep 2017 15:56:18 +0200
changeset 48 afbb9c97d36a
parent 47 86f9d472133c
child 49 2b6e5ca1e1ca
Renamed base content provider class
src/pyams_portal/portlet.py
--- a/src/pyams_portal/portlet.py	Mon Sep 11 15:06:56 2017 +0200
+++ b/src/pyams_portal/portlet.py	Wed Sep 13 15:56:18 2017 +0200
@@ -32,7 +32,7 @@
 from pyams_utils.adapter import adapter_config, ContextAdapter
 from pyams_utils.request import check_request
 from pyams_utils.vocabulary import vocabulary_config
-from pyams_viewlet.viewlet import ContentProvider
+from pyams_viewlet.viewlet import ViewContentProvider
 from pyramid.exceptions import ConfigurationError
 from pyramid.threadlocal import get_current_registry
 from zope.container.contained import Contained
@@ -124,12 +124,11 @@
 # Portlets renderers
 #
 
-class PortletContentProvider(ContentProvider):
+class PortletContentProvider(ViewContentProvider):
     """Base portlet content provider"""
 
     def __init__(self, context, request, view, settings):
         super(PortletContentProvider, self).__init__(context, request, view)
-        self.__parent__ = view
         self.settings = settings
         self.portlet = self.request.registry.getUtility(IPortlet, name=settings.configuration.portlet_name)