src/pyams_content/component/paragraph/interfaces/milestone.py
changeset 1125 7f0cb6e407fc
parent 1094 465b273c312b
child 1353 5940373ec65c
equal deleted inserted replaced
1124:de6e9b0637b6 1125:7f0cb6e407fc
    15 from zope.annotation.interfaces import IAttributeAnnotatable
    15 from zope.annotation.interfaces import IAttributeAnnotatable
    16 from zope.container.constraints import containers, contains
    16 from zope.container.constraints import containers, contains
    17 from zope.interface import Attribute, Interface
    17 from zope.interface import Attribute, Interface
    18 from zope.schema import Bool, Choice
    18 from zope.schema import Bool, Choice
    19 
    19 
    20 from pyams_content.component.paragraph import IBaseParagraph
    20 from pyams_content.component.paragraph import CONTENT_PARAGRAPHS_VOCABULARY, IBaseParagraph
    21 from pyams_content.interfaces.container import IOrderedContainer
    21 from pyams_content.interfaces.container import IOrderedContainer
    22 from pyams_i18n.schema import I18nTextField, I18nTextLineField
    22 from pyams_i18n.schema import I18nTextField, I18nTextLineField
    23 
    23 
    24 from pyams_content import _
    24 from pyams_content import _
    25 
    25 
    45                           description=_("The way this label will be rendered depends on presentation template"),
    45                           description=_("The way this label will be rendered depends on presentation template"),
    46                           required=False)
    46                           required=False)
    47 
    47 
    48     anchor = Choice(title=_("Anchor"),
    48     anchor = Choice(title=_("Anchor"),
    49                     description=_("Paragraph to which this milestone should lead"),
    49                     description=_("Paragraph to which this milestone should lead"),
    50                     vocabulary='PyAMS content paragraphs',
    50                     vocabulary=CONTENT_PARAGRAPHS_VOCABULARY,
    51                     required=False)
    51                     required=False)
    52 
    52 
    53     target = Attribute("Anchor target")
    53     target = Attribute("Anchor target")
    54 
    54 
    55 
    55