Ignore:
Timestamp:
29 Oct 2007, 07:34:30 (17 years ago)
Author:
Henrik Bettermann
Message:

fetch correct level from results_import for school_fee_paid students
(untested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/cps_custom/logged_in.py

    r2456 r2468  
    203203        verdict = res[0].verdict
    204204        level = res[0].level
    205         has_level = level and not level == '000'
     205        has_level = level
    206206        has_verdict = verdict and not verdict == 'N/A'
    207207        #set_trace()
     
    224224                if not has_level and s_review_state == 'returning':
    225225                    lnr = context.getLevelFromResultsCosCode(has_results)
     226                    dsc['current_level'] = "%d00" % lnr
     227                elif not has_level and s_review_state == 'school_fee_paid':
     228                    lnr = context.getLevelFromResultsCosCode(has_results)
     229                    if dsc['current_verdict'] in ('A','B',):
     230                        lnr += 1
    226231                    dsc['current_level'] = "%d00" % lnr
    227232                if sc_review_state != 'opened':
Note: See TracChangeset for help on using the changeset viewer.