# HG changeset patch # User Thierry Florac # Date 1497969656 -7200 # Node ID f382a0fb23754fca93014bb5afcbd21dab3a5a21 # Parent 5d179f78817b2c61789cfb2ee15b020cce29d59d Added permissions docstrings diff -r 5d179f78817b -r f382a0fb2375 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''' #