Use shared content renderer interface
authorThierry Florac <thierry.florac@onf.fr>
Wed, 13 Jun 2018 08:51:03 +0200
changeset 631 9bedfc1d5560
parent 630 c9202df14100
child 632 aa2352c824ca
Use shared content renderer interface
src/pyams_content/component/paragraph/zmi/preview.py
src/pyams_content/shared/form/zmi/render.py
--- a/src/pyams_content/component/paragraph/zmi/preview.py	Wed Jun 13 08:49:40 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/preview.py	Wed Jun 13 08:51:03 2018 +0200
@@ -18,7 +18,7 @@
 # import interfaces
 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer, \
     IParagraphRenderer
-from pyams_content.features.renderer.interfaces import IContentRenderer
+from pyams_content.features.renderer.interfaces import ISharedContentRenderer
 from pyams_skin.layer import IPyAMSLayer
 
 # import packages
@@ -27,7 +27,7 @@
 
 
 @adapter_config(name='paragraphs-render', context=(IParagraphContainerTarget, IPyAMSLayer),
-                provides=IContentRenderer)
+                provides=ISharedContentRenderer)
 class ParagraphsContainerRenderer(BaseContentRenderer):
     """Paragraphs container renderer"""
 
--- a/src/pyams_content/shared/form/zmi/render.py	Wed Jun 13 08:49:40 2018 +0200
+++ b/src/pyams_content/shared/form/zmi/render.py	Wed Jun 13 08:51: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.form.interfaces import IFormFieldContainerTarget, IFormFieldContainer
 from pyams_form.interfaces.form import IFormHelp
 from pyams_i18n.interfaces import II18n
@@ -77,7 +77,7 @@
 
 
 @adapter_config(name='form-render', context=(IFormFieldContainerTarget, IPyAMSLayer),
-                provides=IContentRenderer)
+                provides=ISharedContentRenderer)
 class FormFieldContainerRenderer(BaseContentRenderer):
     """Form field container renderer"""