src/pyams_content/component/paragraph/interfaces/keypoint.py
changeset 555 8e8a14452567
parent 429 fafbf6bb246e
child 586 28445044f6e3
equal deleted inserted replaced
554:120ce09ade94 555:8e8a14452567
    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 IBaseParagraph
    19 from pyams_content.component.paragraph.interfaces import IBaseParagraph
    20 from pyams_content.features.renderer import IRenderedContent
       
    21 
    20 
    22 # import packages
    21 # import packages
    23 from pyams_i18n.schema import I18nTextField
    22 from pyams_i18n.schema import I18nTextField
    24 from zope.schema import Choice
    23 from zope.schema import Choice
    25 
    24 
    32 
    31 
    33 KEYPOINTS_PARAGRAPH_TYPE = 'Keypoints'
    32 KEYPOINTS_PARAGRAPH_TYPE = 'Keypoints'
    34 KEYPOINTS_PARAGRAPH_RENDERERS = 'PyAMS.paragraph.keypoint.renderers'
    33 KEYPOINTS_PARAGRAPH_RENDERERS = 'PyAMS.paragraph.keypoint.renderers'
    35 
    34 
    36 
    35 
    37 class IKeypointsParagraph(IRenderedContent, IBaseParagraph):
    36 class IKeypointsParagraph(IBaseParagraph):
    38     """Key points paragraph"""
    37     """Key points paragraph"""
    39 
    38 
    40     body = I18nTextField(title=_("Key points"),
    39     body = I18nTextField(title=_("Key points"),
    41                          description=_("Enter one key point by line, without hyphen or prefix"),
    40                          description=_("Enter one key point by line, without hyphen or prefix"),
    42                          required=False)
    41                          required=False)