- Timestamp:
- 15 Jan 2007, 07:18:55 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r1162 r1293 134 134 records = self.searchResults({'student' : student_id}) 135 135 if len(records) > 0: 136 return -1,"Student with Id %s already booked bed %s " % (student_id,records[0].bed)136 return -1,"Student with Id %s already booked bed %s." % (student_id,records[0].bed) 137 137 138 138 records = [r for r in self.searchResults({'bed_type' : bed_type}) if not r.student] 139 139 #import pdb;pdb.set_trace() 140 140 if len(records) == 0: 141 return -1,"No bed of this type available !"141 return -1,"No bed of this type available. This category is probably fully booked." 142 142 rec = records[0] 143 143 self.modifyRecord(bed=rec.bed,student=student_id) -
WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py
r1292 r1293 57 57 logger.info('"%s", %s' % (member_id,info['error'] )) 58 58 if psm == 'invalid': 59 psm = " please correct your input"59 psm = "Please correct your input." 60 60 else: 61 psm = "Error in Data, unable to reserve bed."61 psm = "Error in data, unable to reserve bed." 62 62 return context.accommodation_pin_edit_form(rendered = res, 63 63 psm = psm, -
WAeUP_SRP/trunk/skins/waeup_student/student_view.pt
r1258 r1293 46 46 <br /> 47 47 <form action="mail_password_form" method="post" class="group"> 48 <input type="submit" class="context" value="Send Email with Authenti fication Data" />48 <input type="submit" class="context" value="Send Email with Authentication Data" /> 49 49 </form> 50 50 </span>
Note: See TracChangeset for help on using the changeset viewer.