Added index for webmaster role
authorThierry Florac <thierry.florac@onf.fr>
Thu, 02 Jun 2016 15:18:57 +0200
changeset 31 0505d35a472d
parent 30 dd345161e0b6
child 32 66baddd786d5
Added index for webmaster role
src/pyams_content/generations/__init__.py
--- a/src/pyams_content/generations/__init__.py	Thu May 12 10:49:09 2016 +0200
+++ b/src/pyams_content/generations/__init__.py	Thu Jun 02 15:18:57 2016 +0200
@@ -9,7 +9,6 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 #
-from pyams_content.component.links.interfaces import IInternalLink
 
 __docformat__ = 'restructuredtext'
 
@@ -19,6 +18,7 @@
 # import interfaces
 from pyams_catalog.interfaces import DATE_RESOLUTION
 from pyams_content.interfaces import IBaseContent
+from pyams_content.component.links.interfaces import IInternalLink
 from pyams_content.root.interfaces import ISiteRootToolsConfiguration
 from pyams_content.shared.common.interfaces import IWfSharedContent
 from pyams_utils.interfaces.site import ISiteGenerations
@@ -57,6 +57,7 @@
                     ('role:pilot', PrincipalsRoleIndex, {'role_id': 'pyams.Pilot'}),
                     ('role:manager', PrincipalsRoleIndex, {'role_id': 'pyams.Manager'}),
                     ('role:contributor', PrincipalsRoleIndex, {'role_id': 'pyams.Contributor'}),
+                    ('role:webmaster', PrincipalsRoleIndex, {'role_id': 'pyams.Webmaster'}),
                     ('parents', KeywordIndexWithInterface, {'interface': IPathElements,
                                                             'discriminator': 'parents'}),
                     ('workflow_state', FieldIndexWithInterface, {'interface': IWorkflowState,