--- a/src/pyams_content/component/paragraph/zmi/milestone.py Tue Nov 27 15:36:41 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/milestone.py Tue Nov 27 15:37:04 2018 +0100
@@ -23,8 +23,8 @@
from zope.interface import Interface, implementer
from zope.schema.vocabulary import getVocabularyRegistry
-from pyams_content.component.paragraph.interfaces import IParagraphContainer, IParagraphContainerTarget, \
- PARAGRAPH_HIDDEN_FIELDS
+from pyams_content.component.paragraph.interfaces import CONTENT_PARAGRAPHS_VOCABULARY, IParagraphContainer, \
+ IParagraphContainerTarget, PARAGRAPH_HIDDEN_FIELDS
from pyams_content.component.paragraph.interfaces.milestone import IMilestone, IMilestoneContainer, \
IMilestoneContainerTarget, IMilestoneParagraph, MILESTONE_PARAGRAPH_TYPE
from pyams_content.component.paragraph.milestone import Milestone, MilestoneParagraph
@@ -268,7 +268,7 @@
if target is None:
return self.defaultValue
try:
- vocabulary = getVocabularyRegistry().get(obj, 'PyAMS content paragraphs')
+ vocabulary = getVocabularyRegistry().get(obj, CONTENT_PARAGRAPHS_VOCABULARY)
return vocabulary.getTermByToken(obj.anchor).title
except LookupError:
return self.request.localizer.translate(_("(missing paragraph)")).format(obj.anchor)