--- a/src/pyams_content/component/illustration/interfaces/__init__.py Fri Mar 02 12:43:43 2018 +0100
+++ b/src/pyams_content/component/illustration/interfaces/__init__.py Fri Mar 02 13:36:35 2018 +0100
@@ -32,6 +32,7 @@
#
ILLUSTRATION_KEY = 'pyams_content.illustration'
+ILLUSTRATION_RENDERERS = 'PyAMS.illustration.renderer'
class IIllustration(IRenderedContent):
@@ -67,7 +68,7 @@
renderer = Choice(title=_("Illustration template"),
description=_("Presentation template used for illustration"),
- vocabulary='PyAMS illustration renderers',
+ vocabulary=ILLUSTRATION_RENDERERS,
default='hidden')
@@ -96,5 +97,5 @@
renderer = Choice(title=_("Illustration template"),
description=_("Presentation template used for illustration"),
- vocabulary='PyAMS illustration renderers',
+ vocabulary=ILLUSTRATION_RENDERERS,
default='hidden')
--- a/src/pyams_content/component/illustration/renderer.py Fri Mar 02 12:43:43 2018 +0100
+++ b/src/pyams_content/component/illustration/renderer.py Fri Mar 02 13:36:35 2018 +0100
@@ -16,6 +16,7 @@
# import standard library
# import interfaces
+from pyams_content.component.illustration.interfaces import ILLUSTRATION_RENDERERS
from pyams_content.features.renderer.interfaces import IContentRenderer
# import packages
@@ -25,7 +26,7 @@
from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
-@vocabulary_config(name='PyAMS illustration renderers')
+@vocabulary_config(name=ILLUSTRATION_RENDERERS)
class IllustrationRendererVocabulary(SimpleVocabulary):
"""Illustration renderer utilities vocabulary"""