Changeset 2483


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

don't fetch verdict from results_import if school_fee_paid

Location:
WAeUP_SRP/base/skins
Files:
2 edited

Legend:

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

    r2480 r2483  
    6969
    7070        student_app = getattr(student,'application',None)
    71            
     71
    7272        #########################################################
    7373
     
    223223                sc_review_state = wftool.getInfoFor(study_course,'review_state',None)
    224224                dsc = {}
    225                 if not has_verdict:
     225                if not has_verdict and s_review_state == 'returning':
    226226                    dsc['current_verdict'] = context.getVerdict(has_results[0].Verdict)[0]
    227227                if not has_level and s_review_state == 'returning':
  • WAeUP_SRP/base/skins/waeup_student/getStudyCourseInfo.py

    r2476 r2483  
    6060
    6161items = []
     62
     63if hasattr(course,'current_verdict'):
     64    try:
     65        info['verdict'] = context.portal_vocabularies.verdicts.get(course.current_verdict).upper()
     66    except:
     67        info['verdict'] = course.current_verdict
     68else:
     69    info['verdict'] = ''
     70
     71if hasattr(course,'previous_verdict'):
     72    try:
     73        previous_verdict = course.previous_verdict
     74        info['previous_verdict'] = context.portal_vocabularies.verdicts.get(course.previous_verdict).upper()
     75    except:
     76        info['previous_verdict'] = course.previous_verdict
     77else:
     78    info['previous_verdict'] = ''
     79    previous_verdict = ''
     80
     81
    6282current_level = sbrain.level
    6383levels = context.objectIds()
     
    6888may_register = (student_review_state in ('school_fee_paid',)) and\
    6989               current_level not in levels and\
    70                (sbrain.verdict in ('A','B','C','F','J','L','M') or sbrain.level == '100' or (sbrain.mode.startswith('de') and sbrain.level == '200'))
     90               (previous_verdict in ('A','B','C','F','J','L','M') or sbrain.level == '100' or (sbrain.mode.startswith('de') and sbrain.level == '200'))
    7191
    7292levels.sort()
     
    84104info['items'] = items
    85105
    86 if hasattr(course,'current_verdict'):
    87     try:
    88         info['verdict'] = context.portal_vocabularies.verdicts.get(course.current_verdict).upper()
    89     except:
    90         info['verdict'] = course.current_verdict
    91 else:
    92     info['verdict'] = ''   
    93      
    94 if hasattr(course,'previous_verdict'):       
    95     try:
    96         info['previous_verdict'] = context.portal_vocabularies.verdicts.get(course.previous_verdict).upper()
    97     except:
    98         info['previous_verdict'] = course.previous_verdict
    99 else:
    100     info['previous_verdict'] = ''
    101    
     106
     107
    102108return info
    103109
Note: See TracChangeset for help on using the changeset viewer.