Changeset 5165 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
23 Apr 2010, 06:58:42 (14 years ago)
Author:
Henrik Bettermann
Message:

implement temporary application module only for 2008 sandwich applicants so that they can remain in the system

Location:
WAeUP_SRP/trunk/skins
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py

    r4542 r5165  
    3131
    3232#manage = "manage" in request.keys()
    33 screening_types = ('prence','pume','pce','pde','cest','sandwich','dp','ct','pt')
     33screening_types = ('prence','pume','pce','pde','cest','sandwich','dp','ct','pt','sandwich2008')
    3434if not (traverse_subpath and traverse_subpath[0] in screening_types):
    3535    return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
     
    4040headings['prence'] = 'Apply for Pre-NCE Programme (2007/2008)! '
    4141headings['pce'] = 'Apply for PCE Screening (2009/2010)! '
    42 headings['cest'] = 'Apply for Part-Time Degree or Diploma Programmes (2008/2009)! '
     42headings['sandwich2008'] = 'Apply for Part Time Degree in Education (2008/2009)! '
     43headings['cest'] = 'Apply for Part-Time Degree or Diploma Programmes (2009/2010)! '
    4344headings['pt'] = 'Apply for Part-Time Degree (2009/2010)! '
    4445headings['dp'] = 'Apply for Diploma Programmes (2009/2010)! '
    4546headings['ct'] = 'Apply for Certificate Programmes (2009/2010)! '
    46 headings['sandwich'] = 'Apply for Part Time Degree in Education (2008/2009)! '
     47headings['sandwich'] = 'Apply for Part Time Degree in Education (2009/2010)! '
    4748configuration += ('heading',headings),
    4849
     
    5253headings_slip['prence'] = 'Pre-NCE Application (2007/2008) Acknowledgement Slip'
    5354headings_slip['pce'] = 'PCE Screening (2009/2010) Acknowledgement Slip'
    54 headings_slip['cest'] = 'CEST Application (2008/2009) Acknowledgement Slip'
     55headings_slip['sandwich2008'] = 'Application for Part Time Degree in Education (2008/2009) Acknowledgement Slip'
     56headings_slip['cest'] = 'CEST Application (2009/2010) Acknowledgement Slip'
    5557headings_slip['pt'] = 'Part-Time Degree Application (2009/2010) Acknowledgement Slip'
    5658headings_slip['dp'] = 'Diploma Programme Application (2009/2010) Acknowledgement Slip'
    5759headings_slip['ct'] = 'Certificate Programme Application (2009/2010) Acknowledgement Slip'
    58 headings_slip['sandwich'] = 'Application for Part Time Degree in Education (2008/2009) Acknowledgement Slip'
     60headings_slip['sandwich'] = 'Application for Part Time Degree in Education (2009/2010) Acknowledgement Slip'
    5961configuration += ('heading_slip',headings_slip),
    6062
     
    6870deaddates['prence'] = DateTime.DateTime(pprops.date1)
    6971deaddates['pce'] = DateTime.DateTime(pprops.date5)
     72deaddates['sandwich2008'] = DateTime.DateTime(pprops.date1)  #is expired like pume
    7073deaddates['cest'] = DateTime.DateTime(pprops.date3)
    7174deaddates['sandwich'] = DateTime.DateTime(pprops.date4)
     
    8588confirm['prence'] = "I confirm that the Passport Photograph uploaded on this form is a true picture of me."
    8689confirm['pce'] = "I confirm that the Passport Photograph uploaded on this form is a true picture of me."
    87 confirm['cest'] = confirm['sandwich'] = confirm['pt'] = confirm['dp'] = confirm['ct'] = """I hereby acknowledge
     90confirm['cest'] = confirm['sandwich'] = confirm['pt'] = confirm['dp'] = confirm['ct'] = confirm['sandwich2008'] = """I hereby acknowledge
    8891by ticking this check box that if it is discovered
    8992at any time, that I do not possess any of the qualifications, which I have obtained, I will be
     
    123126if traverse_subpath and traverse_subpath[0] in screening_types:
    124127    screening_type = traverse_subpath[0]
    125 without_reg_no = screening_type in ('prence','cest','sandwich')
     128without_reg_no = screening_type in ('prence','cest','sandwich','sandwich2008')
    126129info['expired'] = current.greaterThan(deaddates[screening_type])
    127130info['expiration_date'] = deaddates[screening_type]
     
    160163    if without_reg_no:
    161164        ## see fceokene #147
    162         reg_no = ds.get('pin_n','').upper()
    163         #reg_no = ds.get('pin_p') + ds.get('pin_b') + ds.get('pin_n')
     165        if screening_type == 'sandwich2008':
     166            reg_no = ds.get('pin_n','').upper()
     167        else:
     168            reg_no = ds.get('pin_p') + ds.get('pin_b') + ds.get('pin_n')
    164169    else:
    165170        reg_no = ds.get('reg_no')
  • WAeUP_SRP/trunk/skins/waeup_student/apply_admission_form.pt

    r4388 r5165  
    8686            <p>Instructions :</p>
    8787            <ul>
    88               <li>Enter your <span tal:condition="python:not info['screening_type'] in ('prence','cest','sandwich')">JAMB Registration Number and the</span> Application PIN.</li>
     88              <li>Enter your <span tal:condition="python:not info['screening_type'] in ('prence','cest','sandwich','sandwich2008')">JAMB Registration Number and the</span> Application PIN.</li>
    8989              <li>Fill the form and upload your Passport Photograph with red background in jpg format.</li>
    9090              <li>Save and preview picture.
  • WAeUP_SRP/trunk/skins/waeup_student/apply_admission_manage_form.pt

    r3887 r5165  
    6363        <span tal:condition="rendered_main">
    6464          <h3>Application Record <span tal:replace="reg_no"/>
    65             <tal:block condition="python: ds['screening_type'] == 'cest' and ccode">
     65            <tal:block condition="python: ds['screening_type'] in ('cest','sandwich2008') and ccode">
    6666                (<span tal:replace="python:'%s%s/%s' % (ccode[:3],serial,context.getSessionId()[0])" />)
    6767            </tal:block>
  • WAeUP_SRP/trunk/skins/waeup_student/apply_admission_slip.pt

    r3887 r5165  
    1212           app_no string:${ccode}${serial}/${session_id};
    1313           screening_type options/ds/screening_type;
    14            with_app_no python: screening_type in ('cest','sandwich');   
     14           with_app_no python: screening_type in ('cest','sandwich','sandwich2008');   
    1515           "
    1616           >
  • WAeUP_SRP/trunk/skins/waeup_uniben/config_form.pt

    r4253 r5165  
    141141        <th>
    142142          <label>
    143             Deadline CEST Application 2008/2009:
     143            Deadline CEST Application:
    144144          </label>
    145145        </th>
Note: See TracChangeset for help on using the changeset viewer.