## Script (Python) "getVerdict" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=verdict ##title= ## # $Id: getVerdict.py 1401 2007-02-08 18:08:38Z joachim $ verdicts = {'SUCCESSFUL STUDENT': ('successful',True), 'STUDENT WITH CARRYOVER COURSES': ('carryover',True), 'STUDENT ON PROBATION': ('probation',False), 'WITHDRAWAL STUDENT': ('withdrawal',False), 'FIRST CLASS HONOURS': ('first_class',False), 'SECOND CLASS HONOURS (UPPER DIVISION)': ('second_class_upper',False), 'SECOND CLASS HONOURS (LOWER DIVISION)': ('second_class_lower',False), 'THIRD CLASS': ('third_class',False), # '': ('',False), } return verdicts.get(verdict,('no_such_verdict',False))