Added permissions docstrings
authorThierry Florac <thierry.florac@onf.fr>
Tue, 20 Jun 2017 16:40:56 +0200
changeset 87 f382a0fb2375
parent 86 5d179f78817b
child 88 758d0cb86132
Added permissions docstrings
src/pyams_content/interfaces/__init__.py
--- a/src/pyams_content/interfaces/__init__.py	Wed Jun 14 15:22:24 2017 +0200
+++ b/src/pyams_content/interfaces/__init__.py	Tue Jun 20 16:40:56 2017 +0200
@@ -32,12 +32,28 @@
 #
 
 MANAGE_SITE_ROOT_PERMISSION = 'pyams.ManageSiteRoot'
+'''Permission required to manage main site root properties'''
+
 MANAGE_SITE_PERMISSION = 'pyams.ManageSite'
+'''Permission required to manager inner site or blog properties'''
+
 MANAGE_TOOL_PERMISSION = 'pyams.ManageTool'
+'''Permission required to manager shared tool properties'''
+
 CREATE_CONTENT_PERMISSION = 'pyams.CreateContent'
+'''Permission required to create a new content'''
+
+CREATE_VERSION_PERMISSION = 'pyams.CreateVersion'
+'''Permission required to create a new version of an existing content'''
+
 MANAGE_CONTENT_PERMISSION = 'pyams.ManageContent'
+'''Permission required to manager properties of an existing content'''
+
 COMMENT_CONTENT_PERMISSION = 'pyams.CommentContent'
+'''Permission required to add comments on an existing content'''
+
 PUBLISH_CONTENT_PERMISSION = 'pyams.PublishContent'
+'''Permission required to publish or retire an existing content'''
 
 
 #