src/pyams_content/component/illustration/zmi/paragraph.py
changeset 487 093f201e3168
parent 432 a068d20dc9ae
child 527 5dd1aa8bedd9
equal deleted inserted replaced
486:cb67e71dafff 487:093f201e3168
    15 
    15 
    16 # import standard library
    16 # import standard library
    17 
    17 
    18 # import interfaces
    18 # import interfaces
    19 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, \
    19 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, \
    20     IParagraphContainer, IParagraphPreview
    20     IParagraphContainer, IParagraphRenderer
    21 from pyams_content.component.illustration.interfaces import IIllustration, IIllustrationParagraph, \
    21 from pyams_content.component.illustration.interfaces import IIllustration, IIllustrationParagraph, \
    22     ILLUSTRATION_PARAGRAPH_TYPE
    22     ILLUSTRATION_PARAGRAPH_TYPE
    23 from pyams_content.component.paragraph.zmi.interfaces import IParagraphInnerEditor, IParagraphContainerView
    23 from pyams_content.component.paragraph.zmi.interfaces import IParagraphInnerEditor, IParagraphContainerView
    24 from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION
    24 from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION
    25 from pyams_form.interfaces.form import IInnerForm, IEditFormButtons
    25 from pyams_form.interfaces.form import IInnerForm, IEditFormButtons
    31 
    31 
    32 # import packages
    32 # import packages
    33 from pyams_content.component.illustration.paragraph import Illustration
    33 from pyams_content.component.illustration.paragraph import Illustration
    34 from pyams_content.component.paragraph.zmi import BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm, \
    34 from pyams_content.component.paragraph.zmi import BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm, \
    35     BaseParagraphAddMenu, BaseParagraphPropertiesEditForm
    35     BaseParagraphAddMenu, BaseParagraphPropertiesEditForm
    36 from pyams_content.features.renderer.zmi import BaseRenderedContentPreview
    36 from pyams_content.features.renderer.zmi import BaseRenderedContentRenderer
    37 from pyams_content.features.renderer.zmi.widget import RendererFieldWidget
    37 from pyams_content.features.renderer.zmi.widget import RendererFieldWidget
    38 from pyams_pagelet.pagelet import pagelet_config
    38 from pyams_pagelet.pagelet import pagelet_config
    39 from pyams_utils.adapter import adapter_config
    39 from pyams_utils.adapter import adapter_config
    40 from pyams_viewlet.viewlet import viewlet_config
    40 from pyams_viewlet.viewlet import viewlet_config
    41 from pyams_zmi.form import AdminDialogAddForm
    41 from pyams_zmi.form import AdminDialogAddForm
   185             })
   185             })
   186         return output
   186         return output
   187 
   187 
   188 
   188 
   189 #
   189 #
   190 # Illustration preview
   190 # Illustration renderer
   191 #
   191 #
   192 
   192 
   193 @adapter_config(context=(IIllustrationParagraph, IPyAMSLayer), provides=IParagraphPreview)
   193 @adapter_config(context=(IIllustrationParagraph, IPyAMSLayer), provides=IParagraphRenderer)
   194 class IllustrationPreview(BaseRenderedContentPreview):
   194 class IllustrationRenderer(BaseRenderedContentRenderer):
   195     """Illustration preview"""
   195     """Illustration renderer"""