# HG changeset patch # User Thierry Florac # Date 1444232663 -7200 # Node ID 2676f46ef999e00e9f1ccaa877a07b978e3b5d63 # Parent e74e5360db3293370fa03bd9629a04fe992fca7f Added names permissions diff -r e74e5360db32 -r 2676f46ef999 src/pyams_utils/interfaces/__init__.py --- a/src/pyams_utils/interfaces/__init__.py Thu Aug 27 11:29:09 2015 +0200 +++ b/src/pyams_utils/interfaces/__init__.py Wed Oct 07 17:44:23 2015 +0200 @@ -20,6 +20,36 @@ # import packages +# +# Custom string constants +# + +# Custom permission which is never granted to any user +FORBIDDEN_PERMISSION = 'system.forbidden' + +# public permission is granted to every principal +PUBLIC_PERMISSION = 'public' + +# view permission is a custom permission used to view contents +VIEW_PERMISSION = 'view' + +# permission used to manage basic informations +# this permission is generally not used by custom contents +MANAGE_PERMISSION = 'manage' + +# permission used to access management screens +VIEW_SYSTEM_PERMISSION = 'system.view' + +# permission used to manage system settings +MANAGE_SYSTEM_PERMISSION = 'system.manage' + +# permission used to manage security settings +MANAGE_SECURITY_PERMISSION = 'security.manage' + +# permission used to manage roles +MANAGE_ROLES_PERMISSION = 'security.manage_roles' + + # ZODB application name settings key PYAMS_APPLICATION_SETTINGS_KEY = 'pyams.application_name'