Changeset 3409 for WAeUP_SRP/base/skins/waeup_student
- Timestamp:
- 3 Apr 2008, 07:42:06 (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
r3394 r3409 116 116 117 117 pin = request.form.get('pin','') 118 reg_no = request.get('widget__reg_no','').upper() 119 if not reg_no: 120 reg_no = request.form.get('reg_no','').upper() 118 # reg_no = request.get('widget__reg_no','').upper() 119 # if not reg_no: 120 # reg_no = request.form.get('reg_no','').upper() 121 reg_no = request.form.get('reg_no','').upper() 121 122 if not reg_no: 122 123 reg_no = request.get('widget__pin_n','').upper() 123 124 124 object = {} 125 125 if reg_no: … … 143 143 #logger.info('%s/%s entered wrong pin %s' % (member,reg_no,pin)) 144 144 #return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 145 146 147 148 145 info = {} 149 150 146 info['status'] = object.get('status','') 151 147 if traverse_subpath and traverse_subpath[0] in screening_types: … … 192 188 info = info, 193 189 ) 194 elif psm == '' and not manage: 190 info['reg_no'] = ds.get('reg_no') 191 info['pin'] = ds.get('pin') 192 if psm == '' and not manage: 195 193 return context.apply_admission_form(rendered = res, 196 194 psm = psm, -
WAeUP_SRP/base/skins/waeup_student/apply_admission_form.pt
r3392 r3409 30 30 tal:condition="info/screening_type|nothing"/> 31 31 <input type="hidden" name="reg_no" 32 tal:attributes="value ds/reg_no|nothing"33 tal:condition=" ds/reg_no|nothing"/>32 tal:attributes="value info/reg_no|nothing" 33 tal:condition="info/reg_no|nothing"/> 34 34 <input type="hidden" name="pin" 35 tal:attributes="value ds/pin|nothing"36 tal:condition=" ds/pin|nothing"/>35 tal:attributes="value info/pin|nothing" 36 tal:condition="info/pin|nothing"/> 37 37 <input type="hidden" name="expiration_date" 38 38 tal:attributes="value info/expiration_date|nothing"
Note: See TracChangeset for help on using the changeset viewer.