source: waeup_product/trunk/WAeUPPermissions.py @ 110

Last change on this file since 110 was 84, checked in by joachim, 19 years ago

=Roles and Facultymanagement, new themes used

  • Property svn:keywords set to Id
File size: 2.5 KB
RevLine 
[19]1# (C) Copyright 2005 AixtraWare <http://aixtraware.de>
2# Author: Joachim Schmitz <js@aixtraware.de>
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License version 2 as published
6# by the Free Software Foundation.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program; if not, write to the Free Software
15# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
16# 02111-1307, USA.
17#
18# $Id: WAeUPPermissions.py 84 2005-10-25 16:18:40Z joachim $
19
20__author__ = "Joachim Schmitz <js@aixtraware.de>"
21
22"""WAeUP Student Permissions
[84]23"""
[19]24
[84]25from AccessControl import ModuleSecurityInfo
26from Products.CMFCore.permissions import setDefaultRoles
27security = ModuleSecurityInfo('Products.WAeUP.WAeUPPermissions')
28
[80]29#  - 'University Manage' : Permission you need to manage a University
[19]30#
[84]31security.declarePublic('UniversityManage')
32UniversityManage = "University Manage"
33setDefaultRoles(UniversityManage, ('Manager',
34                                   'Owner',))
35#  - 'Student Manage' : Permission you need to manage Students
36#
37security.declarePublic('StudentManage')
38StudentManage = "Student Manage"
39setDefaultRoles(StudentManage, ('Manager',
40                                'FacultyManager',
41                                'Owner',))
[80]42#  - 'Faculty Manage' : Permission you need to manage a Faculty
[19]43#
[84]44security.declarePublic('FacultyManage')
45FacultyManage = "Faculty Manage"
46setDefaultRoles(FacultyManage, ('Manager',
47                                'FacultyManager',
48                                'Owner',))
[80]49#  - 'Department Manage' : Permission you need to manage a Department
50#
[84]51security.declarePublic('DepartmentManage')
52DepartmentManage = "Department Manage"
53setDefaultRoles(DepartmentManage, ('Manager',
54                                   'FacultyManager',
55                                   'Department',
56                                   'Owner',))
57#  - 'Course Manage' : Permission you need to manage a Department
58#
59security.declarePublic('CourseManage')
60CourseManage = "Course Manage"
61setDefaultRoles(CourseManage, ('Manager',
62                                   'FacultyManager',
63                                   'DepartmentManager',
64                                   'CourseManager',
65                                   'Owner',))
[19]66
Note: See TracBrowser for help on using the repository browser.