# HG changeset patch # User Thierry Florac # Date 1531843170 -7200 # Node ID 384d5f914612687b35f3bc91845f34cf82d69643 # Parent ae0c84d7029f44d641af13b3d57016df1f2b6d68 Added constant for vocabulary name diff -r ae0c84d7029f -r 384d5f914612 src/pyams_content/shared/common/__init__.py --- a/src/pyams_content/shared/common/__init__.py Tue Jul 17 15:01:50 2018 +0200 +++ b/src/pyams_content/shared/common/__init__.py Tue Jul 17 17:59:30 2018 +0200 @@ -22,7 +22,7 @@ from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE, ERROR_VALUE from pyams_content.features.review.interfaces import IReviewComments from pyams_content.shared.common.interfaces import IWfSharedContent, IWfSharedContentRoles, ISharedContent, \ - IBaseSharedTool, ISharedSite, IWfSharedContentFactory + IBaseSharedTool, ISharedSite, IWfSharedContentFactory, CONTENT_TYPES_VOCABULARY from pyams_i18n.interfaces import II18nManager, II18n from pyams_portal.interfaces import DESIGNER_ROLE from pyams_security.interfaces import IDefaultProtectionPolicy @@ -94,7 +94,7 @@ del CONTENT_TYPES[key] -@vocabulary_config(name='PyAMS content types') +@vocabulary_config(name=CONTENT_TYPES_VOCABULARY) class ContentTypesVocabulary(SimpleVocabulary): """Content types vocabulary""" diff -r ae0c84d7029f -r 384d5f914612 src/pyams_content/shared/common/interfaces/__init__.py --- a/src/pyams_content/shared/common/interfaces/__init__.py Tue Jul 17 15:01:50 2018 +0200 +++ b/src/pyams_content/shared/common/interfaces/__init__.py Tue Jul 17 17:59:30 2018 +0200 @@ -225,6 +225,9 @@ """Workflow managed shared content factory interface""" +CONTENT_TYPES_VOCABULARY = 'PyAMS content types' + + # # Generic restrictions interfaces #