src/pyams_content/component/paragraph/interfaces/keypoint.py
changeset 416 c848b7ceefb7
parent 411 d2425a3c3a49
child 421 20a2b671ade1
equal deleted inserted replaced
415:43f42d74cdb8 416:c848b7ceefb7
       
     1 #
       
     2 # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
       
     3 # All Rights Reserved.
       
     4 #
       
     5 # This software is subject to the provisions of the Zope Public License,
       
     6 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
       
     7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
       
     8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
       
     9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
       
    10 # FOR A PARTICULAR PURPOSE.
       
    11 #
       
    12 
       
    13 __docformat__ = 'restructuredtext'
       
    14 
       
    15 
       
    16 # import standard library
       
    17 
       
    18 # import interfaces
       
    19 from pyams_content.component.paragraph.interfaces import IBaseParagraph
       
    20 
       
    21 # import packages
       
    22 from pyams_i18n.schema import I18nTextField
       
    23 
       
    24 from pyams_content import _
       
    25 
       
    26 
       
    27 #
       
    28 # Keypoints paragraph
       
    29 #
       
    30 
       
    31 KEYPOINTS_PARAGRAPH_TYPE = 'Keypoints'
       
    32 
       
    33 
       
    34 class IKeypointsParagraph(IBaseParagraph):
       
    35     """Keypoints paragraph"""
       
    36 
       
    37     body = I18nTextField(title=_("Key points"),
       
    38                          description=_("Enter one key point by line, without hyphen or prefix"),
       
    39                          required=False)