Ignore:
Timestamp:
3 Apr 2008, 07:42:06 (17 years ago)
Author:
joachim
Message:

dont show pin, if invalid input

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  
    116116
    117117pin = 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()
     121reg_no = request.form.get('reg_no','').upper()
    121122if not reg_no:
    122123    reg_no = request.get('widget__pin_n','').upper()
    123 
    124124object = {}
    125125if reg_no:
     
    143143            #logger.info('%s/%s entered wrong pin %s' % (member,reg_no,pin))
    144144            #return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
    145 
    146 
    147 
    148145info = {}
    149 
    150146info['status'] = object.get('status','')
    151147if traverse_subpath and traverse_subpath[0] in screening_types:
     
    192188                                        info = info,
    193189                                       )
    194 elif psm == '' and not manage:
     190info['reg_no'] = ds.get('reg_no')
     191info['pin'] = ds.get('pin')
     192if psm == '' and not manage:
    195193    return context.apply_admission_form(rendered = res,
    196194                                        psm = psm,
  • WAeUP_SRP/base/skins/waeup_student/apply_admission_form.pt

    r3392 r3409  
    3030                 tal:condition="info/screening_type|nothing"/>
    3131          <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"/>
    3434          <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"/>
    3737          <input type="hidden" name="expiration_date"
    3838                 tal:attributes="value info/expiration_date|nothing"
Note: See TracChangeset for help on using the changeset viewer.