Changeset 3425
- Timestamp:
- 7 Apr 2008, 07:24:40 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_accommodation/change_bed.py
r3408 r3425 96 96 if sbt is None: 97 97 continue 98 elif r.bed_type == sbt :98 elif r.bed_type == sbt or r.bed_type.endswith('reserved'): 99 99 #list.append("Student %s bed_type %s ok" % (r.student,r.bed_type)) 100 100 continue -
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.