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 import IBaseParagraph |
19 from pyams_content.component.paragraph import IBaseParagraph |
20 from pyams_content.features.renderer import IRenderedContent |
|
21 from pyams_content.interfaces.container import IOrderedContainer |
20 from pyams_content.interfaces.container import IOrderedContainer |
22 from zope.annotation.interfaces import IAttributeAnnotatable |
21 from zope.annotation.interfaces import IAttributeAnnotatable |
23 |
22 |
24 # import packages |
23 # import packages |
25 from pyams_i18n.schema import I18nTextLineField |
24 from pyams_i18n.schema import I18nTextLineField |
75 |
74 |
76 KEYNUMBER_PARAGRAPH_TYPE = 'KeyNumbers' |
75 KEYNUMBER_PARAGRAPH_TYPE = 'KeyNumbers' |
77 KEYNUMBER_PARAGRAPH_RENDERERS = 'PyAMS.keynumbers.renderers' |
76 KEYNUMBER_PARAGRAPH_RENDERERS = 'PyAMS.keynumbers.renderers' |
78 |
77 |
79 |
78 |
80 class IKeyNumberParagraph(IKeyNumberContainerTarget, IRenderedContent, IBaseParagraph): |
79 class IKeyNumberParagraph(IKeyNumberContainerTarget, IBaseParagraph): |
81 """Key numbers paragraph interface""" |
80 """Key numbers paragraph interface""" |
82 |
81 |
83 renderer = Choice(title=_("Key numbers template"), |
82 renderer = Choice(title=_("Key numbers template"), |
84 description=_("Presentation template used for key numbers"), |
83 description=_("Presentation template used for key numbers"), |
85 vocabulary=KEYNUMBER_PARAGRAPH_RENDERERS, |
84 vocabulary=KEYNUMBER_PARAGRAPH_RENDERERS, |