Changeset 652
- Timestamp:
- 11 Oct 2006, 07:50:28 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 5 edited
- 5 moved
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/actionicons.xml
r631 r652 238 238 title="Apply for PUME" priority="2" 239 239 icon_expr="bell.png"/> 240 <action-icon category="student" action_id="reserve_acco "240 <action-icon category="student" action_id="reserve_accommodation" 241 241 title="Book Hostal" priority="3" 242 242 icon_expr="bell.png"/> -
WAeUP_SRP/trunk/profiles/default/actions.xml
r640 r652 138 138 <permission>View</permission> 139 139 </action> 140 <action title="Book Hostal" action_id="reserve_acco "140 <action title="Book Hostal" action_id="reserve_accommodation" 141 141 category="student" condition_expr="member" 142 url_expr="string:${portal_url}/reserve_acco "142 url_expr="string:${portal_url}/reserve_accommodation" 143 143 visible="True"> 144 144 <permission>View</permission> -
WAeUP_SRP/trunk/profiles/default/layouts.xml
r629 r652 14 14 <object name="student_study_course" meta_type="CPS Layout"/> 15 15 <object name="student_accommodation" meta_type="CPS Layout"/> 16 <object name="student_acco _reserve" meta_type="CPS Layout"/>16 <object name="student_accommodation_fe" meta_type="CPS Layout"/> 17 17 <object name="student_application" meta_type="CPS Layout"/> 18 18 <object name="student_application_fe" meta_type="CPS Layout"/> -
WAeUP_SRP/trunk/profiles/default/schemas.xml
r629 r652 17 17 <object name="scratch_card_batch" meta_type="CPS Schema"/> 18 18 <object name="student_accommodation" meta_type="CPS Schema"/> 19 <object name="student_acco _reserve" meta_type="CPS Schema"/>19 <object name="student_accommodation_fe" meta_type="CPS Schema"/> 20 20 <object name="student_application" meta_type="CPS Schema"/> 21 21 <object name="student_clearance" meta_type="CPS Schema"/> -
WAeUP_SRP/trunk/profiles/default/types/StudentAccommodation.xml
r642 r652 8 8 <property name="product">WAeUP_SRP</property> 9 9 <property name="factory">addStudentAccommodation</property> 10 <property name="immediate_view"> hostal_reservation_slip</property>10 <property name="immediate_view">accommodation_slip</property> 11 11 <property name="global_allow">True</property> 12 12 <property name="filter_content_types">True</property> … … 26 26 <property name="storage_methods"/> 27 27 <property name="cps_is_portlet">False</property> 28 <alias from="(Default)" to=" hostal_reservation_slip"/>29 <alias from="view" to=" hostal_reservation_slip"/>28 <alias from="(Default)" to="accommodation_slip"/> 29 <alias from="view" to="accommodation_slip"/> 30 30 <action title="Standard View" action_id="view" category="object" 31 condition_expr="" url_expr="string:${object_url}/ hostal_reservation_slip"31 condition_expr="" url_expr="string:${object_url}/accommodation_slip" 32 32 visible="True"> 33 33 <permission value="View"/> -
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.