vendor/CMF/1.6-r40908/CMFCalendar

view permissions.py @ 0:e47fc5876d9a

Vendor import of CMF 1.6 branch r40908
author fguillaume
date Tue, 20 Dec 2005 15:51:52 +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 """ CMFCalendar product permissions
15 $Id: permissions.py 36457 2004-08-12 15:07:44Z jens $
16 """
17 from AccessControl import ModuleSecurityInfo
19 from Products.CMFCore.permissions import setDefaultRoles
21 security = ModuleSecurityInfo('Products.CMFCalendar.permissions')
23 security.declarePublic('AddEvents')
24 AddEvents = 'Add portal events'
25 setDefaultRoles(AddEvents, ('Manager', 'Owner', 'Member'))
27 security.declarePublic('ChangeEvents')
28 ChangeEvents = 'Change portal events'
29 setDefaultRoles(ChangeEvents, ('Manager', 'Owner',))
31 security.declarePublic('AddPortalContent')
32 from Products.CMFCore.permissions import AddPortalContent
34 security.declarePublic('ManagePortal')
35 from Products.CMFCore.permissions import ManagePortal
37 security.declarePublic('View')
38 from Products.CMFCore.permissions import View
40 security.declarePublic('ModifyPortalContent')
41 from Products.CMFCore.permissions import ModifyPortalContent