source: WAeUP_SRP/trunk/skins/waeup_student/getVerdict.py @ 1416

Last change on this file since 1416 was 1401, checked in by joachim, 18 years ago

fix the levels
add verdict to students_catalog
add current_verdict to student_study_course
add the same fixes to makeStudentData (not yet tested)

  • Property svn:keywords set to Id
File size: 802 bytes
RevLine 
[1401]1## Script (Python) "getVerdict"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=verdict
8##title=
9##
10# $Id: getVerdict.py 1401 2007-02-08 18:08:38Z joachim $
11
12verdicts = {'SUCCESSFUL STUDENT': ('successful',True),
13            'STUDENT WITH CARRYOVER COURSES': ('carryover',True),
14            'STUDENT ON PROBATION': ('probation',False),
15            'WITHDRAWAL STUDENT': ('withdrawal',False),
16            'FIRST CLASS HONOURS': ('first_class',False),
17            'SECOND CLASS HONOURS (UPPER DIVISION)': ('second_class_upper',False),
18            'SECOND CLASS HONOURS (LOWER DIVISION)': ('second_class_lower',False),
19            'THIRD CLASS': ('third_class',False),
20#            '': ('',False),
21            }
22
23return verdicts.get(verdict,('no_such_verdict',False))
24
Note: See TracBrowser for help on using the repository browser.