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.interfaces import IRenderedContent |
|
21 from pyams_content.interfaces.container import IOrderedContainer |
20 from pyams_content.interfaces.container import IOrderedContainer |
22 from pyams_content.reference.pictograms.interfaces import SELECTED_PICTOGRAM_VOCABULARY |
21 from pyams_content.reference.pictograms.interfaces import SELECTED_PICTOGRAM_VOCABULARY |
23 from zope.annotation import IAttributeAnnotatable |
22 from zope.annotation import IAttributeAnnotatable |
24 |
23 |
25 # import packages |
24 # import packages |
79 |
78 |
80 PICTOGRAM_PARAGRAPH_TYPE = 'Pictograms' |
79 PICTOGRAM_PARAGRAPH_TYPE = 'Pictograms' |
81 PICTOGRAM_PARAGRAPH_RENDERERS = 'MyAMS.pictograms.renderers' |
80 PICTOGRAM_PARAGRAPH_RENDERERS = 'MyAMS.pictograms.renderers' |
82 |
81 |
83 |
82 |
84 class IPictogramParagraph(IPictogramContainerTarget, IRenderedContent, IBaseParagraph): |
83 class IPictogramParagraph(IPictogramContainerTarget, IBaseParagraph): |
85 """Pictograms paragraph interface""" |
84 """Pictograms paragraph interface""" |
86 |
85 |
87 renderer = Choice(title=_("Pictograms template"), |
86 renderer = Choice(title=_("Pictograms template"), |
88 description=_("Presentation template used for pictograms"), |
87 description=_("Presentation template used for pictograms"), |
89 vocabulary=PICTOGRAM_PARAGRAPH_RENDERERS, |
88 vocabulary=PICTOGRAM_PARAGRAPH_RENDERERS, |