Updated vocabulary name
authorThierry Florac <thierry.florac@onf.fr>
Fri, 02 Mar 2018 13:36:35 +0100
changeset 422 38fa157bfc5f
parent 421 20a2b671ade1
child 423 7dd6cb55f5c7
Updated vocabulary name
src/pyams_content/component/illustration/interfaces/__init__.py
src/pyams_content/component/illustration/renderer.py
--- 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"""