vendor/CMF/1.5.5-beta/CMFTopic

view permissions.py @ 0:4341d8feb2f9

Vendor import of CMF 1.5.5-beta
author fguillaume
date Mon, 07 Nov 2005 22:03:41 +0000
parents
children
line source
1 ##############################################################################
2 #
3 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
4 #
5 # This software is subject to the provisions of the Zope Public License,
6 # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
10 # FOR A PARTICULAR PURPOSE.
11 #
12 ##############################################################################
13 """ Permissions used throughout CMFTopic.
15 $Id: permissions.py 36457 2004-08-12 15:07:44Z jens $
16 """
17 from AccessControl import ModuleSecurityInfo
19 security = ModuleSecurityInfo('Products.CMFTopic.permissions')
21 from Products.CMFCore.permissions import setDefaultRoles
23 security.declarePublic('AddTopics')
24 AddTopics = 'Add portal topics'
25 setDefaultRoles(AddTopics, ('Manager',))
27 security.declarePublic('ChangeTopics')
28 ChangeTopics = 'Change portal topics'
29 setDefaultRoles(ChangeTopics, ('Manager', 'Owner',))
31 security.declarePublic('AccessContentsInformation')
32 from Products.CMFCore.permissions import AccessContentsInformation
34 security.declarePublic('ListFolderContents')
35 from Products.CMFCore.permissions import ListFolderContents
37 security.declarePublic('View')
38 from Products.CMFCore.permissions import View