## Script (Python) "getSchoolFee" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=brain=None ##title= ## # $Id: getSchoolFee.py 2534 2007-11-05 06:37:12Z henrik $ """ return SchoolFee """ ARTS = ('CRS','ISS','HIS','MUS','ECO','GEO','POL','SOS','CCA','ECU','THA','GED','GSE','PES','SPC','ENG ','FRE','ARB','HAU','IGB','YOR') # SCS = ('BIO','CHE','HED','MAT','PED','PHY ','CSC','ISC','PHE','AGE','BED','HEC','TED','FAA') d = {} if not brain.mode.endswith('_sw'): # PRENCE if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated': if brain.department in ARTS: d['all'] = 14900 else: d['all'] = 15400 # all repeaters #elif brain.verdict == 'C': # if brain.department in ARTS: # d['all'] = 9170 # else: # d['all'] = 9645 # NCE I fresh elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated': if brain.department in ARTS: d['all'] = 12020 else: d['all'] = 12495 # NCE II elif str(brain.level) in ('100','110','120') and brain.review_state == 'returning': if brain.department in ARTS: d['all'] = 11070 else: d['all'] = 11545 # NCE III elif str(brain.level) in ('200','210','220'): if brain.department in ARTS: d['all'] = 11070 else: d['all'] = 11545 # NCE III repeater elif str(brain.level) in ('300','310','320') and brain.verdict == 'O': if brain.department in ARTS: d['all'] = 5535 else: d['all'] = 5773 # NCE III spillover elif str(brain.level) in ('300','310','320') and brain.verdict == 'B': if brain.department in ARTS: d['all'] = 9170 else: d['all'] = 9645 # NCE III second spillover elif str(brain.level) in ('400','410','420') and brain.verdict == 'B': if brain.department in ARTS: d['all'] = 9170 else: d['all'] = 9645 else: d['all'] = 0 else: if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated': if brain.department in ARTS: d['all'] = 21900 else: d['all'] = 22400 # all repeaters #elif brain.verdict == 'C': # if brain.department in ARTS: # d['all'] = 16900 # else: # d['all'] = 17400 # NCE II elif str(brain.level) in ('100','110','120') and brain.review_state == 'returning': if brain.department in ARTS: d['all'] = 18400 else: d['all'] = 18900 # NCE III elif str(brain.level) in ('200','210','220'): if brain.department in ARTS: d['all'] = 20400 else: d['all'] = 20900 # NCE IV elif str(brain.level) in ('300','310','320'): if brain.department in ARTS: d['all'] = 18400 else: d['all'] = 18900 # NCE V elif str(brain.level) in ('400','410','420'): if brain.department in ARTS: d['all'] = 18400 else: d['all'] = 18900 # NCE V spillover elif str(brain.level) in ('500','510','520') and brain.verdict == 'B': if brain.department in ARTS: d['all'] = 16900 else: d['all'] = 17400 # NCE V second spillover elif str(brain.level) in ('600','610','620') and brain.verdict == 'B': if brain.department in ARTS: d['all'] = 16900 else: d['all'] = 17400 else: d['all'] = 0 next_info = context.getNextInfo(brain) next_session_str = next_info['next_session_str'] d['next_session_id'] = next_info['next_session_id'] d['description'] = "School Fee for Session %s" % next_session_str return d