Changeset 652 for WAeUP_SRP/trunk/skins
- Timestamp:
- 11 Oct 2006, 07:50:28 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py
r642 r652 20 20 if info['acco']: 21 21 return context.REQUEST.RESPONSE.redirect("%s" % info['acco'].absolute_url()) 22 res,psm,ds = lt.renderLayout(layout_id= 'student_acco _reserve',23 schema_id= 'student_acco _reserve',22 res,psm,ds = lt.renderLayout(layout_id= 'student_accommodation_fe', 23 schema_id= 'student_accommodation_fe', 24 24 context=context, 25 25 mapping=validate and REQUEST, 26 26 ob={}, 27 27 layout_mode='create', 28 formaction = "reserve_acco ",28 formaction = "reserve_accommodation", 29 29 button = "book Bed", 30 30 ) 31 31 if psm == 'invalid': 32 return context. reserve_acco_form(rendered = res,32 return context.accommodation_pin_form(rendered = res, 33 33 #psm = "Please correct your input.", 34 34 psm = "%s, %s" % (psm,ds), … … 38 38 ) 39 39 elif psm == '': 40 return context. reserve_acco_form(rendered = res,40 return context.accommodation_pin_form(rendered = res, 41 41 psm = None, 42 42 firstlayout = True, … … 51 51 code,bed = pa.searchAndReserveBed(s_id,"%s_%s" % (info['sex'],ds.get('student_status'))) 52 52 if code < 0: 53 return context. reserve_acco_form(rendered = res,53 return context.accommodation_pin_form(rendered = res, 54 54 psm = bed, 55 55 firstlayout = True, … … 63 63 ds.set('session', session) 64 64 acco.getContent().edit(mapping=ds) 65 return context.REQUEST.RESPONSE.redirect("%s/ hostal_reservation_slip" % student.absolute_url())66 ##return context. reserve_acco_form(rendered = res,65 return context.REQUEST.RESPONSE.redirect("%s/accommodation_slip" % student.absolute_url()) 66 ##return context.accommodation_pin_form(rendered = res, 67 67 ## psm = "successfully reserved bed %s" % bed, 68 68 ## firstlayout = True,
Note: See TracChangeset for help on using the changeset viewer.