src/pyams_content/component/paragraph/zmi/frame.py
changeset 487 093f201e3168
parent 449 3b5cf400af18
child 489 dcdb0ce828f8
equal deleted inserted replaced
486:cb67e71dafff 487:093f201e3168
    17 
    17 
    18 # import interfaces
    18 # import interfaces
    19 from pyams_content.component.association.interfaces import IAssociationTarget
    19 from pyams_content.component.association.interfaces import IAssociationTarget
    20 from pyams_content.component.association.zmi.interfaces import IAssociationsParentForm
    20 from pyams_content.component.association.zmi.interfaces import IAssociationsParentForm
    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.interfaces.frame import IFrameParagraph, FRAME_PARAGRAPH_TYPE
    23 from pyams_content.component.paragraph.interfaces.frame import IFrameParagraph, FRAME_PARAGRAPH_TYPE
    24 from pyams_content.component.paragraph.zmi.interfaces import IParagraphInnerEditor, IParagraphContainerView
    24 from pyams_content.component.paragraph.zmi.interfaces import IParagraphInnerEditor, IParagraphContainerView
    25 from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION
    25 from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION
    26 from pyams_form.interfaces.form import IInnerForm, IEditFormButtons
    26 from pyams_form.interfaces.form import IInnerForm, IEditFormButtons
    27 from pyams_skin.interfaces.tinymce import ITinyMCEConfiguration
    27 from pyams_skin.interfaces.tinymce import ITinyMCEConfiguration
    35 from pyams_content.component.paragraph.frame import FrameParagraph
    35 from pyams_content.component.paragraph.frame import FrameParagraph
    36 from pyams_content.component.paragraph.zmi import BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm, \
    36 from pyams_content.component.paragraph.zmi import BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm, \
    37     BaseParagraphAddMenu, BaseParagraphPropertiesEditForm
    37     BaseParagraphAddMenu, BaseParagraphPropertiesEditForm
    38 from pyams_content.component.paragraph.zmi.container import ParagraphContainerTable, \
    38 from pyams_content.component.paragraph.zmi.container import ParagraphContainerTable, \
    39     ParagraphTitleToolbarViewletManager
    39     ParagraphTitleToolbarViewletManager
    40 from pyams_content.features.renderer.zmi import BaseRenderedContentPreview
    40 from pyams_content.features.renderer.zmi import BaseRenderedContentRenderer
    41 from pyams_content.features.renderer.zmi.widget import RendererFieldWidget
    41 from pyams_content.features.renderer.zmi.widget import RendererFieldWidget
    42 from pyams_pagelet.pagelet import pagelet_config
    42 from pyams_pagelet.pagelet import pagelet_config
    43 from pyams_utils.adapter import adapter_config, ContextRequestAdapter
    43 from pyams_utils.adapter import adapter_config, ContextRequestAdapter
    44 from pyams_utils.traversing import get_parent
    44 from pyams_utils.traversing import get_parent
    45 from pyams_viewlet.viewlet import viewlet_config
    45 from pyams_viewlet.viewlet import viewlet_config
   222             })
   222             })
   223         return output
   223         return output
   224 
   224 
   225 
   225 
   226 #
   226 #
   227 # Framed text paragraph preview
   227 # Framed text paragraph renderer
   228 #
   228 #
   229 
   229 
   230 @adapter_config(context=(IFrameParagraph, IPyAMSLayer), provides=IParagraphPreview)
   230 @adapter_config(context=(IFrameParagraph, IPyAMSLayer), provides=IParagraphRenderer)
   231 class FrameParagraphPreview(BaseRenderedContentPreview):
   231 class FrameParagraphRenderer(BaseRenderedContentRenderer):
   232     """Framed text paragraph preview"""
   232     """Framed text paragraph renderer"""