- Timestamp:
- 19 Feb 2007, 22:14:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/book_reserved_bed.py
r1444 r1446 72 72 break 73 73 if not bed_brain.bed_type.endswith("reserved"): 74 psm = "Not a reserved bed %s" % bid74 psm = "Not a reserved bed: %s" % bid 75 75 break 76 76 if bed_brain.student and not change: … … 85 85 break 86 86 if not bed_brain.bed_type.endswith("reserved"): 87 psm = "Not a reserved bed %s" % bid87 psm = "Not a reserved bed: %s" % bid 88 88 break 89 89 if not bed_brain.student: … … 91 91 break 92 92 break 93 93 94 94 if psm != '': 95 95 return context.book_reserved_bed_form(rendered = rendered, … … 103 103 for bed in already: 104 104 acco_cat.modifyRecord(bed=bed.bed,student='') 105 105 106 106 students = context.portal_url.getPortalObject().campus.students 107 107 student_obj = getattr(students,sid) … … 118 118 if acco_id in student_obj.objectIds(): 119 119 acco_doc = getattr(student_obj, acco_id).getContent() 120 acco_doc.edit(mapping={'bed': bid + "(removed)"})121 logger.info('"%s"," released reserved bed %s for","%s"' % (member,bid,sid))122 psm = " Bed %s released for %s" % (sid,student.name)123 120 acco_doc.edit(mapping={'bed':bid + " (reservation cancelled by %s!)" % member}) 121 logger.info('"%s","cancelled reservation %s by","%s"' % (member,bid,sid)) 122 psm = "%s removed from %s" % (student.name,bid) 123 124 124 mode = 'view' 125 125 return context.book_reserved_bed_form(rendered = "",
Note: See TracChangeset for help on using the changeset viewer.