source: WAeUP_SRP/trunk/skins/waeup_aaua/getSchoolFee.py @ 5147

Last change on this file since 5147 was 5147, checked in by Henrik Bettermann, 15 years ago

change school fee for sw fresh students

File size: 1.9 KB
Line 
1## Script (Python) "getSchoolFee"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=brain=None
8##title=
9##
10# $Id: getSchoolFee.py 2534 2007-11-05 06:37:12Z henrik $
11"""
12return SchoolFee
13"""
14
15
16d = {}
17
18if brain.mode == 'ug_sw': 
19    if str(brain.level) == '100':    # both 100 fresh and 100 returning who register for 200
20        d['all'] = 35000
21    elif str(brain.level) == '200' and brain.review_state == 'cleared_and_validated':     #de_sw students who start in 200
22        d['all'] = 35000
23    else:
24        d['all'] = 30000
25elif brain.mode == 'pg_sw': 
26    d['all'] = 35000
27elif brain.mode == 'dp_pt': 
28    if str(brain.level) in ('100',) and brain.review_state == 'cleared_and_validated':    # only 100 fresh
29        d['all'] = 40000
30    else:
31        d['all'] = 35000
32elif brain.mode == 'ug_pt': 
33    if str(brain.level) in ('100','200',) and brain.review_state == 'cleared_and_validated':    # only 100 or 200 fresh
34        d['all'] = 50000
35    else:
36        d['all'] = 45000
37elif brain.mode == 'pg_pt': 
38    if str(brain.level) == '600' and brain.review_state == 'cleared_and_validated':    # only 600 fresh
39        d['all'] = 60000
40    elif str(brain.level) == '600' and brain.verdict == 'C':                           # 600 repeaters
41        d['all'] = 55000
42    elif str(brain.level) == '700' and brain.review_state == 'cleared_and_validated':  # only 700 fresh                                             # going to register for 700
43        d['all'] = 75000     
44    elif str(brain.level) == '600':                                                    # going to register for 700
45        d['all'] = 75000       
46    else:
47        d['all'] = 65000
48else:
49    d['all'] = 0
50
51
52next_info = context.getNextInfo(brain)
53next_session_str = next_info['next_session_str']
54d['next_session_id'] = next_info['next_session_id']
55d['description'] = "School Fee for Session %s" % next_session_str
56
57return d
Note: See TracBrowser for help on using the repository browser.