Changeset 1543 for WAeUP_SRP


Ignore:
Timestamp:
14 Mar 2007, 12:44:43 (18 years ago)
Author:
joachim
Message:

fix for issue #111

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py

    r1524 r1543  
    9999    gpa = "%4.2f" % gpa
    100100
    101 
     101#set_trace()
    102102verdict_voc = context.portal_vocabularies.verdicts
    103 if verdict_voc.has_key(student_from_cat.verdict):
    104     info['verdict'] = verdict = verdict_voc.get(student_from_cat.verdict).upper()
     103verdict_code = student_from_cat.get('verdict',None)
     104if verdict_code:
     105    info['verdict'] = verdict = verdict_voc.get(verdict_code,'N/A').upper()
    105106else:
    106     info['verdict'] = 'N/A'
     107    info['verdict'] = verdict = 'N/A'
    107108
    108109if student_from_cat.level:
Note: See TracChangeset for help on using the changeset viewer.