--- 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"""
--- 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')