Ignore:
Timestamp:
19 Mar 2007, 18:57:54 (18 years ago)
Author:
uli
Message:

Merged current trunk into uli-branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/branches/uli/skins/waeup_student/getSessionResults.py

    r1524 r1593  
    2727if requested_id and not context.isStaff() and member_id != requested_id:
    2828    import logging
    29     logger = logging.getLogger('Student.SessionResults.Info')
    30     logger.info('"%s", "tried to access", "%s"' % (member_id,requested_id))
     29    logger = logging.getLogger('Skins.getSessionResults')
     30    logger.info('%s tried to access %s' % (member_id,requested_id))
    3131    return None
    3232elif context.isStaff():
     
    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.