Changeset 1468 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
22 Feb 2007, 11:08:57 (18 years ago)
Author:
Henrik Bettermann
Message:

verdict definition was at the wron place

File:
1 edited

Legend:

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

    r1466 r1468  
    6161gpa = 0
    6262course_count = 0
    63 verdict = None
    6463session = None
    65 verdict_voc = context.portal_vocabularies.verdicts
     64
    6665for r in results:
    67     if verdict is None:
    68         verdict = verdict_voc.get(student_from_cat.verdict)
     66    if session is None:
    6967        session = r.Session
    7068    result = {}
     
    9997    gpa = "%4.2f" % gpa
    10098
     99
     100if student_from_cat.verdict:
     101    verdict_voc = context.portal_vocabularies.verdicts
     102    info['verdict'] = verdict_voc.get(student_from_cat.verdict)
     103else:
     104    info['verdict'] = 'N/A'   
     105
    101106if student_from_cat.level:
    102107    if student_from_cat.sex:
     
    109114    info['level'] = 'N/A'
    110115
    111 info['verdict'] = verdict
    112116info['session'] = session
    113117info['gpa'] = gpa
Note: See TracChangeset for help on using the changeset viewer.