--- a/src/pyams_content/component/paragraph/contact.py Fri Mar 02 13:36:35 2018 +0100
+++ b/src/pyams_content/component/paragraph/contact.py Fri Mar 02 13:41:27 2018 +0100
@@ -17,7 +17,8 @@
# import interfaces
from pyams_content.component.paragraph.interfaces import IParagraphFactory
-from pyams_content.component.paragraph.interfaces.contact import IContactParagraph, CONTACT_PARAGRAPH_TYPE
+from pyams_content.component.paragraph.interfaces.contact import IContactParagraph, CONTACT_PARAGRAPH_TYPE, \
+ CONTACT_PARAGRAPH_RENDERERS
from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE
from pyams_file.interfaces import IImage, IResponsiveImage
from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
@@ -102,7 +103,7 @@
return output
-@vocabulary_config(name='PyAMS contact paragraph renderers')
+@vocabulary_config(name=CONTACT_PARAGRAPH_RENDERERS)
class ContactParagraphRendererVocabulary(SimpleVocabulary):
"""Contact paragraph renderers vocabulary"""
--- a/src/pyams_content/component/paragraph/interfaces/contact.py Fri Mar 02 13:36:35 2018 +0100
+++ b/src/pyams_content/component/paragraph/interfaces/contact.py Fri Mar 02 13:41:27 2018 +0100
@@ -32,6 +32,7 @@
#
CONTACT_PARAGRAPH_TYPE = 'Contact'
+CONTACT_PARAGRAPH_RENDERERS = 'PyAMS.paragraph.contact.renderer'
class IContactParagraph(IRenderedContent, IBaseParagraph):
@@ -58,5 +59,5 @@
renderer = Choice(title=_("Contact template"),
description=_("Presentation template used for this contact"),
- vocabulary='PyAMS contact paragraph renderers',
+ vocabulary=CONTACT_PARAGRAPH_RENDERERS,
default='hidden')