Changeset 1206 for WAeUP_SRP/trunk
- Timestamp:
- 5 Jan 2007, 18:24:56 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/change_bed.py
r1164 r1206 56 56 acco_doc = info['acco_doc'] 57 57 acco_doc.edit(mapping=d) 58 re direct("%s/%s/%s" % (students.absolute_url(),student,info['acco_id']))58 return redirect("%s/%s/%s" % (students.absolute_url(),student,info['acco_id'])) 59 59 logger.info('"%s", "new bed allocation failed","%s"' % (student_id,code)) 60 60 redirect("%s/%s/%s" % (students.absolute_url(),student,info['acco_id'])) … … 66 66 for r in records: 67 67 info = context.getAccommodationInfo(r.student) 68 if r.bed_type == info['student_status']: 68 sbt = info.get('student_status',None) 69 if sbt is None: 70 continue 71 elif r.bed_type == sbt: 69 72 list.append("Student %s bed_type %s ok" % (r.student,r.bed_type)) 70 73 continue
Note: See TracChangeset for help on using the changeset viewer.