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