Changeset 3425 for WAeUP_SRP/uniben
- Timestamp:
- 7 Apr 2008, 07:24:40 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/uniben/waeup_custom/getAccommodationInfo.py
r3131 r3425 85 85 new = student_record.entry_session == session[0] 86 86 arrived = student_record.session == session[0] 87 previous = int(student_record.session) == int(session[0]) - 1 87 88 88 level = None 89 89 end_level = None 90 90 try: 91 91 level = int(student_record.level) 92 except ValueError:93 logger.info('%s has invalid level %s' % ( member_id,student_record.level))92 except: 93 logger.info('%s has invalid level %s' % (student_id,student_record.level)) 94 94 try: 95 95 end_level = int(student_record.end_level) 96 except ValueError: 97 logger.info('%s has invalid end_level %s' % (member_id,student_record.end_level)) 98 96 except: 97 logger.info('%s has invalid end_level %s' % (student_id,student_record.end_level)) 98 try: 99 previous = int(student_record.session) == int(session[0]) - 1 100 except: 101 logger.info('%s has invalid session %s' % (student_id,student_record.session)) 102 99 103 if level is None or end_level is None or student_record.review_state == 'deactivated': 100 104 pass
Note: See TracChangeset for help on using the changeset viewer.