Changeset 3873


Ignore:
Timestamp:
24 Jan 2009, 10:27:51 (16 years ago)
Author:
Henrik Bettermann
Message:

transform into valid Python code (see also my comments with question marks)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_aaue/getSchoolFee.py

    r3872 r3873  
    1717
    1818if brain.mode.endswith('_ft'):
    19     # fresh full-time remedial
     19    # fresh full-time remedial  (not in table???)
    2020    if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated':
    21         if brain.jamb_state == 'edo':
    22         d['all'] = 50000
     21        if brain.lga.startswith('edo'):
     22            d['all'] = 50000
    2323        else:
    2424            d['all'] = 60000
    25     # fresh tull-time students 
    26     elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.faculty=='INE':
    27         if brain.jamb_state == 'edo':
     25    # fresh tull-time students
     26    elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.faculty == 'INE':
     27        if brain.lga.startswith('edo'):
    2828            d['all'] = 22000
    2929        else:
    3030            d['all'] = 0
    31     # returning full-time students
    32     elif str(brain.level) == ('100','200','300','400') and brain.review_state == 'returning':
    33         if brain.jamb_state == 'edo':
     31    # returning full-time students (INE???)
     32    elif str(brain.level) in ('100','200','300','400','110','210','310','410') and brain.review_state == 'returning':
     33        if brain.lga.startswith('edo'):
    3434            d['all'] = 4300
    3535        else:
    3636            d['all'] = 0
    37     # postgrad full-time students
     37    # postgrad full-time students (fresh???)
    3838    elif str(brain.level) == ('600') and brain.review_state == 'cleared_and_validated':
    39         if brain.jamb_state == 'edo':
     39        if brain.lga.startswith('edo'):
    4040            d['all'] = 62500
    41             if brain.jamb_lga == 'foreigner':
     41        elif brain.lga == 'foreigner':
    4242            d['all'] = 189500
    43             else:
    44                 d['all'] = 69500
    45     elif str(brain.level) == ('700','800') and brain.certificate in 'MBL':
    46         if brain.jamb_state == 'edo':
     43        else:
     44            d['all'] = 69500
     45    # MBL students (fresh and/or returning ???)       
     46    elif str(brain.level) in ('700','800','710','810') and brain.certificate in MBL:
     47        if brain.lga.startswith('edo'):
    4748            d['all'] = 89500
    48             if brain.jamb_lga == 'foreigner':
     49        elif brain.lga == 'foreigner':
    4950            d['all'] = 269500
    50             else:
    51                 d['all'] = 99500
    52     elif str(brain.level) == ('700','800') and not in 'MBL':
    53         if brain.jamb_state == 'edo':
     51        else:
     52            d['all'] = 99500
     53    # non-MBL students (fresh and/or returning ???)   
     54    elif str(brain.level) in ('700','800','710','810'):
     55        if brain.lga.startswith('edo'):
    5456            d['all'] = 69500
    55             if brain.jamb_lga == 'foreigner':
     57        if brain.lga == 'foreigner':
    5658            d['all'] = 219500
    57             else:
    58                 d['all'] = 79500
    59    elif str(brain.level) == ('900','1000','1001'):
    60         if brain.jamb_state == 'edo':
     59        else:
     60            d['all'] = 79500
     61    # PHD ????       
     62    elif str(brain.level) in ('900','1000','1001'):
     63        if brain.lga.startswith('edo'):
    6164            d['all'] = 99500
    62             if brain.jamb_lga == 'foreigner':
     65        if brain.lga == 'foreigner':
    6366            d['all'] = 269500
    64             else:
    65                 d['all'] = 109500             
     67        else:
     68            d['all'] = 109500             
    6669else:
    67     # fresh part-time students
    68     elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.faculty=='INE':
    69         if brain.jamb_state == 'edo':
     70    # fresh part-time students INE
     71    elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.faculty == 'INE':
     72        if brain.lga.startswith('edo'):
    7073            d['all'] = 45000
    7174        else:
    7275            d['all'] = 55000
    73     # returning part-time students
    74     elif str(brain.level) == ('100','200','300','400') and brain.review_state == 'returning':
    75         if brain.jamb_state == 'edo':
     76    # returning part-time students (INE???))
     77    elif str(brain.level) in ('100','200','300','400','110','210','310','410') and brain.review_state == 'returning':
     78        if brain.lga.startswith('edo'):
    7679            d['all'] = 30000
    7780        else:
    7881            d['all'] = 40000
    7982    # postgrad part-time students
    80     elif str(brain.level) == ('600') and brain.review_state == 'cleared_and_validated':
    81         if brain.jamb_state == 'edo':
     83    elif str(brain.level) == '600' and brain.review_state == 'cleared_and_validated':
     84        if brain.lga.startswith('edo'):
    8285            d['all'] = 64500
    83             if brain.jamb_lga == 'foreigner':
     86        if brain.lga == 'foreigner':
    8487            d['all'] = 219500
    85             else:
    86                 d['all'] = 74500
     88        else:
     89            d['all'] = 74500
    8790else:
    8891    d['all'] = 0
Note: See TracChangeset for help on using the changeset viewer.