source: WAeUP_SRP/branches/regebro-noskins/skins/waeup_student/getVerdict.py @ 2782

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

verdicts according to Maryannes's email

  • Property svn:keywords set to Id
File size: 742 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 1463 2007-02-21 21:02:25Z 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#            '': ('',False),
22            }
23
24return verdicts.get(verdict,('no_such_verdict',False))
25
Note: See TracBrowser for help on using the repository browser.