# HG changeset patch # User Thierry Florac # Date 1519994561 -3600 # Node ID e59436858d4c1b01adc9bc7776db790f71996451 # Parent 7dd6cb55f5c785cc6d7b817211ddeedb8b77a919 Updated vocabulary name diff -r 7dd6cb55f5c7 -r e59436858d4c src/pyams_content/component/paragraph/header.py --- a/src/pyams_content/component/paragraph/header.py Fri Mar 02 13:41:27 2018 +0100 +++ b/src/pyams_content/component/paragraph/header.py Fri Mar 02 13:42:41 2018 +0100 @@ -17,7 +17,8 @@ # import interfaces from pyams_content.component.paragraph.interfaces import IParagraphFactory -from pyams_content.component.paragraph.interfaces.header import IHeaderParagraph, HEADER_PARAGRAPH_TYPE +from pyams_content.component.paragraph.interfaces.header import IHeaderParagraph, HEADER_PARAGRAPH_TYPE, \ + HEADER_PARAGRAPH_RENDERERS from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE from pyams_content.features.renderer.interfaces import IContentRenderer from pyams_i18n.interfaces import II18n, II18nManager, INegotiator @@ -87,7 +88,7 @@ return output -@vocabulary_config(name='PyAMS header paragraph renderers') +@vocabulary_config(name=HEADER_PARAGRAPH_RENDERERS) class HeaderParagraphRendererVocabulary(SimpleVocabulary): """Header paragraph renderers vocabulary""" diff -r 7dd6cb55f5c7 -r e59436858d4c src/pyams_content/component/paragraph/interfaces/header.py --- a/src/pyams_content/component/paragraph/interfaces/header.py Fri Mar 02 13:41:27 2018 +0100 +++ b/src/pyams_content/component/paragraph/interfaces/header.py Fri Mar 02 13:42:41 2018 +0100 @@ -31,6 +31,7 @@ # HEADER_PARAGRAPH_TYPE = 'Header' +HEADER_PARAGRAPH_RENDERERS = 'PyAMS.paragraph.header.renderer' class IHeaderParagraph(IRenderedContent, IBaseParagraph): @@ -41,5 +42,5 @@ renderer = Choice(title=_("Header template"), description=_("Presentation template used for this header"), - vocabulary='PyAMS header paragraph renderers', + vocabulary=HEADER_PARAGRAPH_RENDERERS, default='hidden')