source: main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/permissions.py @ 17959

Last change on this file since 17959 was 17866, checked in by Henrik Bettermann, 4 months ago

Implement final clearance.

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1## $Id: permissions.py 17866 2024-08-01 11:02:51Z henrik $
2##
3## Copyright (C) 2011 Uli Fouquet & Henrik Bettermann
4## This program is free software; you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 2 of the License, or
7## (at your option) any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program; if not, write to the Free Software
16## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17##
18"""
19More permissions and roles for the students section.
20"""
21import grok
22
23
24class ClearStudentFinancially(grok.Permission):
25    """The ClearStudentFinancially permission is needed to clear students
26    financially or to reject financial clearance. This permission is
27    meant for financial clearance officers.
28    """
29    grok.name('waeup.clearStudentFinancially')
30
31
32class FinancialClearanceOfficer(grok.Role):
33    """Financial Clearance Officers are also allowed to clear
34    students financially. Usually this role is assigned together
35    with the BursaryOfficer role and the StudentsOfficer role.
36    """
37    grok.name('waeup.FinancialClearanceOfficer')
38    grok.title(u'Financial Clearance Officer')
39    grok.permissions('waeup.clearStudentFinancially')
40
41class ClearStudentFinally(grok.Permission):
42    """The ClearStudentFinally permission is needed to clear students
43    finally or to reject final clearance. This permission is
44    meant for final clearance officers.
45    """
46    grok.name('waeup.clearStudentFinally')
47
48
49class FinalClearanceOfficer(grok.Role):
50    """Final Clearance Officers are also allowed to clear
51    students finally. Usually this role is assigned together
52    with the BursaryOfficer role and the StudentsOfficer role.
53    """
54    grok.name('waeup.FinalClearanceOfficer')
55    grok.title(u'Final Clearance Officer')
56    grok.permissions('waeup.clearStudentFinally')
Note: See TracBrowser for help on using the repository browser.