Back to index

plone3  3.1.7
Permissions.py
Go to the documentation of this file.
00001 #########################################################################
00002 # Copyright (c) 2004, 2005 Alberto Berti, Gregoire Weber. 
00003 # All Rights Reserved.
00004 # 
00005 # This file is part of CMFEditions.
00006 # 
00007 # CMFEditions is free software; you can redistribute it and/or modify
00008 # it under the terms of the GNU General Public License as published by
00009 # the Free Software Foundation; either version 2 of the License, or
00010 # (at your option) any later version.
00011 # 
00012 # CMFEditions is distributed in the hope that it will be useful,
00013 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 # GNU General Public License for more details.
00016 # 
00017 # You should have received a copy of the GNU General Public License
00018 # along with CMFEditions; if not, write to the Free Software
00019 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00020 #########################################################################
00021 """Permissions
00022 
00023 $Id: Permissions.py,v 1.1 2005/02/13 11:52:58 gregweb Exp $
00024 """
00025 
00026 from Products.CMFCore.permissions import setDefaultRoles
00027 
00028 ApplyVersionControl = 'CMFEditions: Apply version control'
00029 setDefaultRoles(ApplyVersionControl, ('Manager',))
00030 
00031 SaveNewVersion = 'CMFEditions: Save new version'
00032 setDefaultRoles(SaveNewVersion, ('Manager',))
00033 
00034 PurgeVersion = 'CMFEditions: Purge version'
00035 setDefaultRoles(PurgeVersion, ('Manager',))
00036 
00037 AccessPreviousVersions = 'CMFEditions: Access previous versions'
00038 setDefaultRoles(AccessPreviousVersions, ('Manager',))
00039 
00040 RevertToPreviousVersions = 'CMFEditions: Revert to previous versions'
00041 setDefaultRoles(RevertToPreviousVersions, ('Manager',))
00042 
00043 CheckoutToLocation = 'CMFEditions: Checkout to location'
00044 setDefaultRoles(CheckoutToLocation, ('Manager',))
00045 
00046 ManageVersioningPolicies = 'CMFEditions: Manage versioning policies'
00047 setDefaultRoles(ManageVersioningPolicies, ('Manager',))
00048