--- 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)