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