src/pyams_content/component/illustration/zmi/paragraph.py
changeset 406 5527bc086216
parent 395 2a39b333a585
child 407 0ef5de2d5674
--- a/src/pyams_content/component/illustration/zmi/paragraph.py	Thu Feb 22 10:15:00 2018 +0100
+++ b/src/pyams_content/component/illustration/zmi/paragraph.py	Thu Feb 22 12:00:05 2018 +0100
@@ -17,7 +17,7 @@
 
 # import interfaces
 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, \
-    IParagraphContainer, IParagraphSummary
+    IParagraphContainer, IParagraphPreview
 from pyams_content.component.illustration.interfaces import IIllustration, IIllustrationParagraph
 from pyams_content.component.paragraph.zmi.interfaces import IParagraphInnerEditor, IParagraphContainerView
 from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION
@@ -188,12 +188,12 @@
 # Illustration summary
 #
 
-@adapter_config(context=(IIllustrationParagraph, IPyAMSLayer), provides=IParagraphSummary)
-class IllustrationSummary(BaseContentProvider):
-    """Illustration renderer"""
+@adapter_config(context=(IIllustrationParagraph, IPyAMSLayer), provides=IParagraphPreview)
+class IllustrationPreview(BaseContentProvider):
+    """Illustration preview"""
 
     def __init__(self, context, request):
-        super(IllustrationSummary, self).__init__(context, request)
+        super(IllustrationPreview, self).__init__(context, request)
         self.renderer = self.context.get_renderer()
 
     language = None