Changeset 2322 for WAeUP_SRP/base/skins/waeup_student
- Timestamp:
- 6 Oct 2007, 08:04:42 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/apply_admission.py
r2316 r2322 63 63 elif traverse_subpath and traverse_subpath[0] == "pde": 64 64 layout = "application_pde" 65 application_type = "p ce"65 application_type = "pde" 66 66 elif traverse_subpath and traverse_subpath[0] == "cest": 67 67 layout = "application_cest" 68 application_type = " pce"68 application_type = "cest" 69 69 else: 70 70 return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) … … 79 79 if not reg_no: 80 80 reg_no = request.form.get('reg_no','').upper() 81 82 81 if not reg_no: 82 reg_no = request.get('widget__pin_n','').upper() 83 83 84 84 object = {} … … 117 117 commit = False, 118 118 ) 119 120 119 121 120 122 if slip: … … 146 148 if without_reg_no: 147 149 reg_no = ds.get('reg_no') 150 151 148 152 data = {} 149 153 dm = ds.getDataModel() … … 152 156 data[field] = dm.get(field) 153 157 data['reg_no'] = reg_no 158 data['screening_type'] = application_type 159 160 154 161 155 162 if apply_admission: … … 227 234 psm = "Content changed!" 228 235 data['status'] = "edited" 236 #set_trace() 229 237 context.applicants_catalog.modifyRecord(**data) 230 238 logger.info('%s/%s modified application record' % (member,reg_no)) -
WAeUP_SRP/base/skins/waeup_student/apply_admission_form.pt
r2316 r2322 34 34 tal:attributes="value ds/pin|nothing" 35 35 tal:condition="ds/pin|nothing"/> 36 <input type="hidden" name="application_type" 37 tal:attributes="value application_type|nothing" 38 tal:condition="application_type|nothing"/> 39 36 40 37 <div tal:replace="structure rendered_main" /> 41 38
Note: See TracChangeset for help on using the changeset viewer.