source: WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_student/getVerdict.py @ 11053

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

verdict string added

  • Property svn:keywords set to Id
File size: 791 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 1694 2007-04-20 20:50:51Z 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': ('A',True),
17            'SECOND CLASS HONOURS (UPPER DIVISION)': ('A',True),
18            'SECOND CLASS HONOURS (LOWER DIVISION)': ('A',True),
19            'THIRD CLASS': ('A',True),
20            'PASS': ('A',True),
21            'Temporary Withdrawal': ('J',False),
22#            '': ('',False),
23            }
24
25return verdicts.get(verdict,('no_such_verdict',False))
26
Note: See TracBrowser for help on using the repository browser.