Last change
on this file since 5163 was
5156,
checked in by Henrik Bettermann, 15 years ago
|
3rd change after phone call with Issoufou
|
File size:
1.9 KB
|
Rev | Line | |
---|
[3690] | 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 | """ |
---|
| 12 | return SchoolFee |
---|
| 13 | """ |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | d = {} |
---|
| 17 | |
---|
| 18 | if brain.mode == 'ug_sw': |
---|
[5148] | 19 | if str(brain.level) in ('100','200',) and brain.review_state == 'cleared_and_validated': |
---|
[5156] | 20 | d['all'] = 40000 |
---|
| 21 | elif str(brain.level) in ('100',): #200 returning students |
---|
| 22 | d['all'] = 40000 |
---|
[3690] | 23 | else: |
---|
| 24 | d['all'] = 30000 |
---|
| 25 | elif brain.mode == 'pg_sw': |
---|
| 26 | d['all'] = 35000 |
---|
| 27 | elif brain.mode == 'dp_pt': |
---|
[3751] | 28 | if str(brain.level) in ('100',) and brain.review_state == 'cleared_and_validated': # only 100 fresh |
---|
[3690] | 29 | d['all'] = 40000 |
---|
| 30 | else: |
---|
| 31 | d['all'] = 35000 |
---|
| 32 | elif brain.mode == 'ug_pt': |
---|
[3752] | 33 | if str(brain.level) in ('100','200',) and brain.review_state == 'cleared_and_validated': # only 100 or 200 fresh |
---|
| 34 | d['all'] = 50000 |
---|
[3690] | 35 | else: |
---|
| 36 | d['all'] = 45000 |
---|
| 37 | elif brain.mode == 'pg_pt': |
---|
| 38 | if str(brain.level) == '600' and brain.review_state == 'cleared_and_validated': # only 600 fresh |
---|
| 39 | d['all'] = 60000 |
---|
[3866] | 40 | elif str(brain.level) == '600' and brain.verdict == 'C': # 600 repeaters |
---|
| 41 | d['all'] = 55000 |
---|
[3752] | 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 |
---|
[3690] | 44 | elif str(brain.level) == '600': # going to register for 700 |
---|
| 45 | d['all'] = 75000 |
---|
| 46 | else: |
---|
| 47 | d['all'] = 65000 |
---|
| 48 | else: |
---|
| 49 | d['all'] = 0 |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | next_info = context.getNextInfo(brain) |
---|
| 53 | next_session_str = next_info['next_session_str'] |
---|
| 54 | d['next_session_id'] = next_info['next_session_id'] |
---|
| 55 | d['description'] = "School Fee for Session %s" % next_session_str |
---|
| 56 | |
---|
[3866] | 57 | return d |
---|
Note: See
TracBrowser for help on using the repository browser.