# HG changeset patch # User Thierry Florac # Date 1519994487 -3600 # Node ID 7dd6cb55f5c785cc6d7b817211ddeedb8b77a919 # Parent 38fa157bfc5f361cd15d0ea1483c8fc9f1826ddc Updated vocabulary name diff -r 38fa157bfc5f -r 7dd6cb55f5c7 src/pyams_content/component/paragraph/contact.py --- 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""" diff -r 38fa157bfc5f -r 7dd6cb55f5c7 src/pyams_content/component/paragraph/interfaces/contact.py --- 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')