src/pyams_content/component/paragraph/interfaces/milestone.py
changeset 1353 5940373ec65c
parent 1125 7f0cb6e407fc
--- a/src/pyams_content/component/paragraph/interfaces/milestone.py	Wed Sep 25 09:52:05 2019 +0200
+++ b/src/pyams_content/component/paragraph/interfaces/milestone.py	Wed Sep 25 15:11:13 2019 +0200
@@ -10,8 +10,6 @@
 # FOR A PARTICULAR PURPOSE.
 #
 
-__docformat__ = 'restructuredtext'
-
 from zope.annotation.interfaces import IAttributeAnnotatable
 from zope.container.constraints import containers, contains
 from zope.interface import Attribute, Interface
@@ -19,8 +17,12 @@
 
 from pyams_content.component.paragraph import CONTENT_PARAGRAPHS_VOCABULARY, IBaseParagraph
 from pyams_content.interfaces.container import IOrderedContainer
+from pyams_content.reference.pictograms.interfaces import SELECTED_PICTOGRAM_VOCABULARY
 from pyams_i18n.schema import I18nTextField, I18nTextLineField
 
+
+__docformat__ = 'restructuredtext'
+
 from pyams_content import _
 
 
@@ -42,9 +44,17 @@
                               required=True)
 
     label = I18nTextField(title=_("Associated label"),
-                          description=_("The way this label will be rendered depends on presentation template"),
+                          description=_("The way this label will be rendered depends on "
+                                        "presentation template"),
                           required=False)
 
+    pictogram_name = Choice(title=_("Pictogram"),
+                            description=_("Name of the pictogram associated with this milestone"),
+                            required=False,
+                            vocabulary=SELECTED_PICTOGRAM_VOCABULARY)
+
+    pictogram = Attribute("Selected pictogram object")
+
     anchor = Choice(title=_("Anchor"),
                     description=_("Paragraph to which this milestone should lead"),
                     vocabulary=CONTENT_PARAGRAPHS_VOCABULARY,