Use shared content renderer interface
authorThierry Florac <thierry.florac@onf.fr>
Wed, 13 Jun 2018 08:49:40 +0200
changeset 630 c9202df14100
parent 629 760b1b1dff20
child 631 9bedfc1d5560
Use shared content renderer interface
src/pyams_content/portlet/content/interfaces.py
src/pyams_content/portlet/content/skin/__init__.py
--- a/src/pyams_content/portlet/content/interfaces.py	Wed Jun 13 08:48:56 2018 +0200
+++ b/src/pyams_content/portlet/content/interfaces.py	Wed Jun 13 08:49:40 2018 +0200
@@ -12,6 +12,7 @@
 
 __docformat__ = 'restructuredtext'
 
+
 # import standard library
 
 # import interfaces
--- a/src/pyams_content/portlet/content/skin/__init__.py	Wed Jun 13 08:48:56 2018 +0200
+++ b/src/pyams_content/portlet/content/skin/__init__.py	Wed Jun 13 08:49:40 2018 +0200
@@ -16,11 +16,11 @@
 
 # import interfaces
 from pyams_content.portlet.content.interfaces import ISharedContentPortletSettings
+from pyams_content.features.renderer.interfaces import ISharedContentRenderer
 from pyams_portal.interfaces import IPortalContext, IPortletRenderer
 from pyams_skin.layer import IPyAMSLayer
 
 # import packages
-from pyams_content.features.renderer import IContentRenderer
 from pyams_portal.portlet import PortletRenderer
 from pyams_utils.adapter import adapter_config
 from zope.interface import Interface
@@ -39,7 +39,7 @@
         super(SharedContentPortletRenderer, self).__init__(context, request, view, settings)
         registry = self.request.registry
         self.renderers = [adapter for name, adapter in sorted(registry.getAdapters((self.context, self.request),
-                                                                                   IContentRenderer),
+                                                                                   ISharedContentRenderer),
                                                               key=lambda x: x[1].weight)]
 
     def update(self):