equal
deleted
inserted
replaced
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) |