source: main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/utils.py @ 12387

Last change on this file since 12387 was 12338, checked in by Henrik Bettermann, 10 years ago

Add two more senate verdicts as requested by Uniben (Maryanne) in ticket 952.

  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1## $Id: utils.py 12338 2014-12-29 23:09:26Z 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##
18import grok
19from waeup.kofa.students.utils import StudentsUtils
20from kofacustom.nigeria.interfaces import MessageFactory as _
21
22class NigeriaStudentsUtils(StudentsUtils):
23    """A collection of customized methods.
24
25    """
26
27    VERDICTS_DICT = {
28        '0': 'not yet',
29        'A': 'Successful student',
30        'B': 'Student with carryover courses',
31        'B1': 'B1',
32        'C': 'Student on probation',
33        'D': 'Withdrawn from the faculty',
34        'E': 'Student who were previously on probation',
35        'F': 'Medical case',
36        'G': 'Absent from examination',
37        'H': 'Withheld results',
38        'I': 'Expelled/rusticated/suspended student',
39        'J': 'Temporary withdrawn from the university',
40        'K': 'Unregistered student',
41        'L': 'Referred student',
42        'M': 'Reinstatement',
43        'N': 'Student on transfer',
44        #'O': 'NCE-III repeater', # FCEOkene only
45        'P': 'P',
46        'Y': 'No previous verdict',
47        'X': 'New 300 level student (Uniben)',
48        'Z': 'Successful student (provisional)',
49        'A1': 'First Class',
50        'A2': 'Second Class Upper',
51        'A3': 'Second Class Lower',
52        'A4': 'Third Class',
53        'A5': 'Pass',
54        'A6': 'Distinction',
55        'A7': 'Credit',
56        'A8': 'Merit',
57        }
58
59    SEPARATORS_DICT = {
60        'form.fst_sit_fname': _(u'First Sitting Record'),
61        'form.scd_sit_fname': _(u'Second Sitting Record'),
62        'form.alr_fname': _(u'Advanced Level Record'),
63        'form.hq_type': _(u'Higher Education Record'),
64        'form.hq2_type': _(u'Second Higher Education Record'),
65        'form.nysc_year': _(u'NYSC Information'),
66        'form.employer': _(u'Employment History'),
67        'form.former_matric': _(u'Former Student'),
68        }
69
70    STUDENT_EXPORTER_NAMES = StudentsUtils().STUDENT_EXPORTER_NAMES + (
71            'clearancerequested',)
Note: See TracBrowser for help on using the repository browser.