Changeset 1306 for WAeUP_SRP/trunk
- Timestamp:
- 16 Jan 2007, 06:33:04 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r1305 r1306 139 139 #import pdb;pdb.set_trace() 140 140 if len(records) == 0: 141 return -2 141 return -2,"No bed available" 142 142 rec = records[0] 143 143 self.modifyRecord(bed=rec.bed,student=student_id) -
WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py
r1305 r1306 85 85 ds = ds, 86 86 ) 87 elif code == -2 87 elif code == -2: 88 88 return context.accommodation_pin_edit_form(rendered = res, 89 89 psm = "No bed available. Your category is already fully booked.", 90 90 mode = mode, 91 91 ds = ds, 92 ) 92 ) 93 93 student.invokeFactory('StudentAccommodation',acco_id) 94 94 acco = getattr(student,acco_id)
Note: See TracChangeset for help on using the changeset viewer.