- Timestamp:
- 19 Mar 2007, 18:57:54 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/branches/uli/skins/waeup_student/getSessionResults.py
r1524 r1593 27 27 if requested_id and not context.isStaff() and member_id != requested_id: 28 28 import logging 29 logger = logging.getLogger('S tudent.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)) 31 31 return None 32 32 elif context.isStaff(): … … 99 99 gpa = "%4.2f" % gpa 100 100 101 101 #set_trace() 102 102 verdict_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() 103 verdict_code = student_from_cat.get('verdict',None) 104 if verdict_code: 105 info['verdict'] = verdict = verdict_voc.get(verdict_code,'N/A').upper() 105 106 else: 106 info['verdict'] = 'N/A'107 info['verdict'] = verdict = 'N/A' 107 108 108 109 if student_from_cat.level:
Note: See TracChangeset for help on using the changeset viewer.