# HG changeset patch # User Thierry Florac # Date 1519994195 -3600 # Node ID 38fa157bfc5f361cd15d0ea1483c8fc9f1826ddc # Parent 20a2b671ade16b0d055d18eca282f05e43c1bdfd Updated vocabulary name diff -r 20a2b671ade1 -r 38fa157bfc5f src/pyams_content/component/illustration/interfaces/__init__.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') diff -r 20a2b671ade1 -r 38fa157bfc5f src/pyams_content/component/illustration/renderer.py --- 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"""