[8818] | 1 | ## $Id: utils.py 8825 2012-06-27 08:20:12Z 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', |
---|
| 43 | 'O': 'NCE-III repeater', |
---|
| 44 | 'Y': 'No previous verdict', |
---|
| 45 | 'X': 'New 300 level student', |
---|
| 46 | 'Z': 'Successful student (provisional)', |
---|
| 47 | 'A1': 'First Class', |
---|
| 48 | 'A2': 'Second Class Upper', |
---|
| 49 | 'A3': 'Second Class Lower', |
---|
| 50 | 'A4': 'Third Class', |
---|
| 51 | 'A5': 'Pass', |
---|
| 52 | 'A6': 'Distinction', |
---|
| 53 | 'A7': 'Credit', |
---|
| 54 | 'A8': 'Merit', |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | SEPARATORS_DICT = { |
---|
| 58 | 'form.fst_sit_fname': _(u'First Sitting Record'), |
---|
| 59 | 'form.scd_sit_fname': _(u'Second Sitting Record'), |
---|
| 60 | 'form.alr_fname': _(u'Advanced Level Record'), |
---|
| 61 | 'form.hq_type': _(u'Higher Education Record'), |
---|
| 62 | 'form.hq2_type': _(u'Second Higher Education Record'), |
---|
| 63 | 'form.nysc_year': _(u'NYSC Information'), |
---|
| 64 | 'form.employer': _(u'Employment History'), |
---|
| 65 | 'form.former_matric': _(u'Former Student'), |
---|
| 66 | } |
---|