Back to index

plone3  3.1.7
permissions.py
Go to the documentation of this file.
00001 ##############################################################################
00002 #
00003 # Copyright (c) 2003-2005 Kupu Contributors. All rights reserved.
00004 #
00005 # This software is distributed under the terms of the Kupu
00006 # License. See LICENSE.txt for license text. For a list of Kupu
00007 # Contributors see CREDITS.txt.
00008 #
00009 ##############################################################################
00010 """Zope2 permissions for server-side Kupu interaction
00011 
00012 $Id: permissions.py 36159 2007-01-05 08:50:23Z duncan $
00013 """
00014 try:
00015     from Products.CMFCore.permissions import setDefaultRoles
00016 except ImportError:
00017     # for CMF 1.4
00018     from Products.CMFCore.CMFCorePermissions import setDefaultRoles
00019 
00020 QueryLibraries = "Kupu: Query libraries"
00021 ManageLibraries = "Kupu: Manage libraries"
00022 
00023 # Set up default roles for permissions
00024 setDefaultRoles(QueryLibraries, ('Manager', 'Authenticated'))
00025 setDefaultRoles(ManageLibraries, ('Manager',))