Changeset 3744
- Timestamp:
- 30 Oct 2008, 09:11:49 (16 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/CHANGES.txt
r3738 r3744 106 106 ----------------- 107 107 - allow transition 'pay_school_fee' by import 108 109 1.20 (2008-10-30) 110 ----------------- 111 - enable selecting session for gown hire -
WAeUP_SRP/trunk/profiles/default/layouts/student_gown.xml
r3736 r3744 18 18 <property name="hidden_layout_modes"/> 19 19 <property name="hidden_readonly_layout_modes"/> 20 <property name="prefix">GWN</property>21 20 </widget> 21 <widget name="session" meta_type="WAeUP Session Widget"> 22 <property name="title">Session</property> 23 <property name="fields"> 24 <element value="session_id"/> 25 </property> 26 <property name="label">Session</property> 27 <property name="label_edit">Session</property> 28 <property name="readonly_layout_modes"/> 29 <property name="hidden_layout_modes"/> 30 <property name="hidden_readonly_layout_modes"/> 31 <property name="vocabulary">unset</property> 32 <property name="sorted">True</property> 33 </widget> 22 34 <table> 23 35 <row> 24 36 <cell name="pin"/> 25 37 </row> 38 <row> 39 <cell name="session"/> 40 </row> 26 41 </table> 27 42 </object> -
WAeUP_SRP/trunk/skins/waeup_epayment/request_gown.py
r3736 r3744 34 34 student = getattr(students,student_id) 35 35 student_record = context.students_catalog.getRecordByKey(student_id) 36 session = context.getSessionId() 36 37 #session = context.getSessionId() 37 38 38 39 validate = request.has_key("cpsdocument_create_button") … … 77 78 p_id = "p%s" % ds.get('pin_n') 78 79 pin = str(ds.get('pin')) 80 session = str(ds.get('session')) 81 82 #from Products.zdb import set_trace; set_trace() 83 79 84 try: 80 85 cost = context.portal_pins(pin="".join(pin.split('-')))[0].cost … … 95 100 info['type'] = 'sc' 96 101 info['status'] = 'paid' 97 info['session_id'] = session[0] 102 #info['session_id'] = session[0] 103 info['session_id'] = session 98 104 info['item'] = '' 99 105 info['category'] = 'gown' -
WAeUP_SRP/trunk/skins/waeup_epayment/request_gown_form.pt
r3736 r3744 9 9 10 10 <span tal:condition="rendered_main"> 11 <h3>Hire Gown for Session <span tal:replace="session_str" />!</h3>11 <h3>Hire Gown!</h3> 12 12 <br /> 13 13 <div tal:replace="structure rendered_main" />
Note: See TracChangeset for help on using the changeset viewer.