src/pyams_content/component/illustration/zmi/paragraph.py
changeset 1005 107406cb705c
parent 1002 ab7787b3faf1
child 1084 6b6a884fa28a
equal deleted inserted replaced
1004:ca57b160d863 1005:107406cb705c
    15 from transaction.interfaces import ITransactionManager
    15 from transaction.interfaces import ITransactionManager
    16 from z3c.form import button, field
    16 from z3c.form import button, field
    17 from z3c.form.interfaces import INPUT_MODE
    17 from z3c.form.interfaces import INPUT_MODE
    18 from zope.interface import implementer
    18 from zope.interface import implementer
    19 
    19 
    20 from pyams_content.component.illustration.interfaces import IIllustration, IIllustrationParagraph, IIllustrationTarget, \
    20 from pyams_content.component.illustration.interfaces import IBasicIllustrationTarget, IIllustration, \
    21     ILLUSTRATION_PARAGRAPH_TYPE
    21     IIllustrationParagraph, ILLUSTRATION_PARAGRAPH_TYPE
    22 from pyams_content.component.illustration.paragraph import Illustration
    22 from pyams_content.component.illustration.paragraph import Illustration
    23 from pyams_content.component.paragraph.interfaces import IParagraphContainer, IParagraphContainerTarget
    23 from pyams_content.component.paragraph.interfaces import IParagraphContainer, IParagraphContainerTarget
    24 from pyams_content.component.paragraph.zmi import BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm, \
    24 from pyams_content.component.paragraph.zmi import BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm, \
    25     BaseParagraphAddMenu, BaseParagraphPropertiesEditForm, IParagraphInnerEditFormButtons, \
    25     BaseParagraphAddMenu, BaseParagraphPropertiesEditForm, IParagraphInnerEditFormButtons, \
    26     get_json_paragraph_refresh_event
    26     get_json_paragraph_refresh_event
   139 
   139 
   140 #
   140 #
   141 # Paragraph container illustration marker
   141 # Paragraph container illustration marker
   142 #
   142 #
   143 
   143 
   144 @viewlet_config(name='illustration', context=IIllustrationTarget, layer=IPyAMSLayer, view=IParagraphContainerTable,
   144 @viewlet_config(name='illustration', context=IBasicIllustrationTarget, layer=IPyAMSLayer, view=IParagraphContainerTable,
   145                 manager=IParagraphTitleToolbar, permission=VIEW_SYSTEM_PERMISSION, weight=5)
   145                 manager=IParagraphTitleToolbar, permission=VIEW_SYSTEM_PERMISSION, weight=5)
   146 @template_config(template='templates/paragraph-illustration-icon.pt', layer=IPyAMSLayer)
   146 @template_config(template='templates/paragraph-illustration-icon.pt', layer=IPyAMSLayer)
   147 class ParagraphContainerIllustrationMarker(Viewlet):
   147 class ParagraphContainerIllustrationMarker(Viewlet):
   148     """Paragraph container illustration marker column"""
   148     """Paragraph container illustration marker column"""
   149 
   149