Last change
on this file since 17952 was
3690,
checked in by Henrik Bettermann, 16 years ago
|
Move all customized skins into trunk. The waeup_custom skin together with the default profile is the BASE configuration which is identical to the Uniben set-up.
|
File size:
1.6 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': |
---|
| 19 | if str(brain.level) == '100': # both 100 fresh and 100 returning who register for 200 |
---|
| 20 | d['all'] = 35000 |
---|
| 21 | else: |
---|
| 22 | d['all'] = 30000 |
---|
| 23 | elif brain.mode == 'pg_sw': |
---|
| 24 | d['all'] = 35000 |
---|
| 25 | elif brain.mode == 'dp_pt': |
---|
| 26 | if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated': # only 100 fresh |
---|
| 27 | d['all'] = 40000 |
---|
| 28 | else: |
---|
| 29 | d['all'] = 35000 |
---|
| 30 | elif brain.mode == 'ug_pt': |
---|
| 31 | if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated': # only 100 fresh |
---|
| 32 | d['all'] = 50000 |
---|
| 33 | else: |
---|
| 34 | d['all'] = 45000 |
---|
| 35 | elif brain.mode == 'pg_pt': |
---|
| 36 | if str(brain.level) == '600' and brain.review_state == 'cleared_and_validated': # only 600 fresh |
---|
| 37 | d['all'] = 60000 |
---|
| 38 | elif str(brain.level) == '600' and brain.verdict == 'C': # 600 repeaters |
---|
| 39 | d['all'] = 55000 |
---|
| 40 | elif str(brain.level) == '600': # going to register for 700 |
---|
| 41 | d['all'] = 75000 |
---|
| 42 | else: |
---|
| 43 | d['all'] = 65000 |
---|
| 44 | else: |
---|
| 45 | d['all'] = 0 |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | next_info = context.getNextInfo(brain) |
---|
| 49 | next_session_str = next_info['next_session_str'] |
---|
| 50 | d['next_session_id'] = next_info['next_session_id'] |
---|
| 51 | d['description'] = "School Fee for Session %s" % next_session_str |
---|
| 52 | |
---|
| 53 | return d |
---|
| 54 | |
---|
Note: See
TracBrowser for help on using the repository browser.