Back to index

plone3  3.1.7
permissions.py
Go to the documentation of this file.
00001 ##############################################################################
00002 #
00003 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
00004 #
00005 # This software is subject to the provisions of the Zope Public License,
00006 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
00007 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
00008 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00009 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
00010 # FOR A PARTICULAR PURPOSE.
00011 #
00012 ##############################################################################
00013 """ Permissions used throughout CMFTopic.
00014 
00015 $Id: permissions.py 36457 2004-08-12 15:07:44Z jens $
00016 """
00017 from AccessControl import ModuleSecurityInfo
00018 
00019 security = ModuleSecurityInfo('Products.CMFTopic.permissions')
00020 
00021 from Products.CMFCore.permissions import setDefaultRoles
00022 
00023 security.declarePublic('AddTopics')
00024 AddTopics = 'Add portal topics'
00025 setDefaultRoles(AddTopics, ('Manager',))
00026 
00027 security.declarePublic('ChangeTopics')
00028 ChangeTopics = 'Change portal topics'
00029 setDefaultRoles(ChangeTopics, ('Manager', 'Owner',))
00030 
00031 security.declarePublic('AccessContentsInformation')
00032 from Products.CMFCore.permissions import AccessContentsInformation
00033 
00034 security.declarePublic('ListFolderContents')
00035 from Products.CMFCore.permissions import ListFolderContents
00036 
00037 security.declarePublic('View')
00038 from Products.CMFCore.permissions import View