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

Last change on this file since 1450 was 1446, checked in by Henrik Bettermann, 18 years ago

make book_reserved_bed work

  • Property svn:keywords set to Id
File size: 768 bytes
Line 
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 1446 2007-02-19 22:14:47Z henrik $
11
12verdicts = {'SUCCESSFUL STUDENT': ('A',True),
13            'STUDENT WITH CARRYOVER COURSES': ('B',True),
14            'STUDENT ON PROBATION': ('C',False),
15            'WITHDRAWAL STUDENT': ('D',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.