Changeset 3170 for WAeUP_SRP/base/skins/waeup_accommodation
- Timestamp:
- 15 Feb 2008, 08:20:49 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_accommodation/change_bed.py
r3169 r3170 84 84 list = [] 85 85 to_modify = [] 86 for r in records :86 for r in records[1:100]: 87 87 info = context.getAccommodationInfo(r.student) 88 88 sbt = info.get('student_status',None) … … 92 92 #list.append("Student %s bed_type %s ok" % (r.student,r.bed_type)) 93 93 continue 94 list.append("Student %s bed_type %s != %s" % (r.student,94 message = "Student %s bed_type %s != %s" % (r.student, 95 95 r.bed_type, 96 info['student_status'])) 96 info['student_status']) 97 list.append(message) 97 98 #to_modify.append((r.bed,r.student,info['student_status'],info['acco_doc'])) 98 99 logger.info(message) 100 99 101 return "\r".join(list) 100 102 101 103 for former_bed, student, status,acco_doc in to_modify: 102 104 beds.modifyRecord(bed=former_bed,student='')
Note: See TracChangeset for help on using the changeset viewer.