src/pyams_content/component/gallery/zmi/paragraph.py
changeset 487 093f201e3168
parent 432 a068d20dc9ae
child 527 5dd1aa8bedd9
equal deleted inserted replaced
486:cb67e71dafff 487:093f201e3168
    17 
    17 
    18 # import interfaces
    18 # import interfaces
    19 from pyams_content.component.gallery.interfaces import IGalleryParagraph, IBaseGallery, GALLERY_PARAGRAPH_TYPE
    19 from pyams_content.component.gallery.interfaces import IGalleryParagraph, IBaseGallery, GALLERY_PARAGRAPH_TYPE
    20 from pyams_content.component.gallery.zmi.interfaces import IGalleryContentsView
    20 from pyams_content.component.gallery.zmi.interfaces import IGalleryContentsView
    21 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer, \
    21 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer, \
    22     IParagraphPreview
    22     IParagraphRenderer
    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, IInnerSubForm
    25 from pyams_form.interfaces.form import IInnerForm, IEditFormButtons, IInnerSubForm
    26 from pyams_i18n.interfaces import II18n
    26 from pyams_i18n.interfaces import II18n
    27 from pyams_skin.interfaces.viewlet import IToolbarAddingMenu, IWidgetTitleViewletManager
    27 from pyams_skin.interfaces.viewlet import IToolbarAddingMenu, IWidgetTitleViewletManager
    31 
    31 
    32 # import packages
    32 # import packages
    33 from pyams_content.component.gallery.paragraph import Gallery
    33 from pyams_content.component.gallery.paragraph import Gallery
    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_content.shared.common.zmi import WfSharedContentPermissionMixin
    38 from pyams_content.shared.common.zmi import WfSharedContentPermissionMixin
    39 from pyams_pagelet.pagelet import pagelet_config
    39 from pyams_pagelet.pagelet import pagelet_config
    40 from pyams_skin.viewlet.toolbar import ToolbarAction
    40 from pyams_skin.viewlet.toolbar import ToolbarAction
    41 from pyams_template.template import template_config
    41 from pyams_template.template import template_config
   183     modal_target = True
   183     modal_target = True
   184     stop_propagation = True
   184     stop_propagation = True
   185 
   185 
   186 
   186 
   187 #
   187 #
   188 # Gallery paragraph preview
   188 # Gallery paragraph renderer
   189 #
   189 #
   190 
   190 
   191 @adapter_config(context=(IGalleryParagraph, IPyAMSLayer), provides=IParagraphPreview)
   191 @adapter_config(context=(IGalleryParagraph, IPyAMSLayer), provides=IParagraphRenderer)
   192 class GalleryParagraphPreview(BaseRenderedContentPreview):
   192 class GalleryParagraphRenderer(BaseRenderedContentRenderer):
   193     """Gallery preview"""
   193     """Gallery paragraph renderer"""