- Timestamp:
- 7 Apr 2008, 05:40:53 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Accommodation.py
r3406 r3422 216 216 already = accommodation(student=sid) 217 217 if already: 218 accommodation.modifyRecord(bed=already[0].bed,student= '')218 accommodation.modifyRecord(bed=already[0].bed,student=NOT_OCCUPIED) 219 219 student_obj = getattr(students_folder, student.id) 220 220 acco_id = "accommodation_%s" % self.getSessionId()[0] 221 221 if acco_id in student_obj.objectIds(): 222 222 acco_doc = getattr(student_obj, acco_id).getContent() 223 acco_doc.edit(mapping={'bed': bid}) 223 info = context.getAccommodationInfo(sid) 224 status = info['student_status'] 225 acco_doc.edit(mapping={'bed': bid,'bed_type' : status}) 224 226 member = self.portal_membership.getAuthenticatedMember() 225 227 logger.info('%s changed reserved bed %s for %s' % (member,bid,sid))
Note: See TracChangeset for help on using the changeset viewer.