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 """ CMFCalendar product permissions
00014 
00015 $Id: permissions.py 36457 2004-08-12 15:07:44Z jens $
00016 """
00017 from AccessControl import ModuleSecurityInfo
00018 
00019 from Products.CMFCore.permissions import setDefaultRoles
00020 
00021 security = ModuleSecurityInfo('Products.CMFCalendar.permissions')
00022 
00023 security.declarePublic('AddEvents')
00024 AddEvents = 'Add portal events'
00025 setDefaultRoles(AddEvents, ('Manager', 'Owner', 'Member'))
00026 
00027 security.declarePublic('ChangeEvents')
00028 ChangeEvents = 'Change portal events'
00029 setDefaultRoles(ChangeEvents, ('Manager', 'Owner',))
00030 
00031 security.declarePublic('AddPortalContent')
00032 from Products.CMFCore.permissions import AddPortalContent
00033 
00034 security.declarePublic('ManagePortal')
00035 from Products.CMFCore.permissions import ManagePortal
00036 
00037 security.declarePublic('View')
00038 from Products.CMFCore.permissions import View
00039 
00040 security.declarePublic('ModifyPortalContent')
00041 from Products.CMFCore.permissions import ModifyPortalContent