Use shared content renderer interface
authorThierry Florac <thierry.florac@onf.fr>
Wed, 13 Jun 2018 08:53:03 +0200
changeset 41 36ec18042fb2
parent 40 2dacb2450582
child 42 ce1812019fa2
Use shared content renderer interface
src/pyams_default_theme/shared/common.py
--- a/src/pyams_default_theme/shared/common.py	Mon Jun 11 17:40:01 2018 +0200
+++ b/src/pyams_default_theme/shared/common.py	Wed Jun 13 08:53:03 2018 +0200
@@ -16,7 +16,7 @@
 # import standard library
 
 # import interfaces
-from pyams_content.features.renderer.interfaces import IContentRenderer
+from pyams_content.features.renderer.interfaces import ISharedContentRenderer
 from pyams_content.shared.common.interfaces import IWfSharedContent
 from pyams_default_theme.layer import IPyAMSDefaultLayer
 
@@ -27,7 +27,7 @@
 
 
 @adapter_config(name='header-render', context=(IWfSharedContent, IPyAMSDefaultLayer),
-                provides=IContentRenderer)
+                provides=ISharedContentRenderer)
 @template_config(template='templates/content-header.pt', layer=IPyAMSDefaultLayer)
 class SharedContentHeaderRenderer(BaseContentRenderer):
     """Shared content header renderer"""