Annotation of kupuMPIWG/plone/permissions.py, revision 1.1.1.1

1.1       dwinter     1: ##############################################################################
                      2: #
                      3: # Copyright (c) 2003-2005 Kupu Contributors. All rights reserved.
                      4: #
                      5: # This software is distributed under the terms of the Kupu
                      6: # License. See LICENSE.txt for license text. For a list of Kupu
                      7: # Contributors see CREDITS.txt.
                      8: #
                      9: ##############################################################################
                     10: """Zope2 permissions for server-side Kupu interaction
                     11: 
                     12: $Id: permissions.py 9879 2005-03-18 12:04:00Z yuppie $
                     13: """
                     14: try:
                     15:     from Products.CMFCore.permissions import setDefaultRoles
                     16: except ImportError:
                     17:     # for CMF 1.4
                     18:     from Products.CMFCore.CMFCorePermissions import setDefaultRoles
                     19: 
                     20: QueryLibraries = "Kupu: Query libraries"
                     21: ManageLibraries = "Kupu: Manage libraries"
                     22: 
                     23: # Set up default roles for permissions
                     24: setDefaultRoles(QueryLibraries, ('Manager', 'Member'))
                     25: setDefaultRoles(ManageLibraries, ('Manager',))

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>