Changeset 990 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
5 Dec 2006, 12:08:24 (18 years ago)
Author:
joachim
Message:

fixed not created issue
and application-pin rendering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r979 r990  
    4545member = mtool.getAuthenticatedMember()
    4646
    47 if not redirect_url or redirect_url.endswith('/logged_out'):
     47if True or not redirect_url or redirect_url.endswith('/logged_out'):
    4848    if not is_anon:
    4949        if "Student" in member.getRoles():
     
    6060                da = {}
    6161                pin = request.get('pin')
     62                if not pin:
     63                    jamb_reg_no = info['app_doc'].jamb_reg_no
     64                    res = context.portal_pins(student=jamb_reg_no)
     65                    if len(res) == 1:
     66                        p = res[0].pin
     67                        pin = "%s-%s-%s" % (p[:3],p[3:4],p[4:])
    6268##                email = request.get('email')
    6369                app_doc = info['app_doc']
Note: See TracChangeset for help on using the changeset viewer.