Changeset 2324 for WAeUP_SRP/base


Ignore:
Timestamp:
7 Oct 2007, 06:18:46 (17 years ago)
Author:
Henrik Bettermann
Message:

application_type replaced by screening_type

Location:
WAeUP_SRP/base
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Widgets.py

    r2323 r2324  
    13961396                break
    13971397            if ok >= 1:
    1398                 application_type = self.REQUEST.form.get('application_type','unknown')
     1398                screening_type = self.REQUEST.form.get('screening_type','unknown')
    13991399                if self.isStudent():
    14001400                    err = "This is only for Pume application."
     
    14081408                        d['reg_no'] = applicant.reg_no
    14091409                        d['pin'] = pin_str
    1410                         d['application_type'] = application_type
     1410                        d['screening_type'] = screening_type
    14111411                        d['status'] = 'entered'
    14121412                        getattr(self,self.catalog).modifyRecord(**d)
     
    14161416                        s_logger.info('%s/%s repeatedly entered application record with PIN %s' % (member_id,ref,pin_str))
    14171417                else:
    1418                     datastructure['reg_no'] = ref 
     1418                    datastructure['reg_no'] = ref
    14191419                    res = self.applicants_catalog(reg_no = ref)
    14201420                    if not res:
     
    14241424                        d['pin'] = pin_str
    14251425                        d['status'] = 'entered'
    1426                         d['application_type'] = application_type
     1426                        d['screening_type'] = screening_type
    14271427                        self.applicants_catalog.addRecord(**d)
    14281428                    else:
  • WAeUP_SRP/base/skins/waeup_student/apply_admission.py

    r2323 r2324  
    4949    validate = False
    5050#layout = "application_pume"
    51 #application_type = ""
     51#screening_type = ""
    5252without_reg_no = False
    5353
    5454# if traverse_subpath and traverse_subpath[0] == "prence":
    5555#     layout = "application_prence"
    56 #     application_type = "prence"
     56#     screening_type = "prence"
    5757#     without_reg_no = True
    5858# elif traverse_subpath and traverse_subpath[0] == "pume":
    5959#     layout = "application_pume"
    60 #     application_type = "pume"
     60#     screening_type = "pume"
    6161# elif traverse_subpath and traverse_subpath[0] == "pce":
    6262#     layout = "application_pce"
    63 #     application_type = "pce"
     63#     screening_type = "pce"
    6464# elif traverse_subpath and traverse_subpath[0] == "pde":
    6565#     layout = "application_pde"
    66 #     application_type = "pde"
     66#     screening_type = "pde"
    6767# elif traverse_subpath and traverse_subpath[0] == "cest":
    6868#     layout = "application_cest"
    69 #     application_type = "cest"
     69#     screening_type = "cest"
    7070# else:
    7171#     return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
    72 application_types = ('prence','pume','pce','pde','cest')
     72screening_types = ('prence','pume','pce','pde','cest')
    7373headings = {}
    7474headings['pume'] = 'Apply for Post UME Screening Test (2007/2008)! '
     
    7878headings['cest'] = 'Apply for Common Entrance Screening Test (2007/2008)! '
    7979info = {}
    80 if traverse_subpath and traverse_subpath[0] in application_types:
    81     application_type = info['application_type'] = traverse_subpath[0]
    82     info['heading'] = headings[application_type]
    83     layout = "application_%s" % application_type
    84     without_reg_no = application_type in ('prence',)
    85    
     80if traverse_subpath and traverse_subpath[0] in screening_types:
     81    screening_type = info['screening_type'] = traverse_subpath[0]
     82    info['heading'] = headings[screening_type]
     83    layout = "application_%s" % screening_type
     84    without_reg_no = screening_type in ('prence',)
     85
    8686else:
    8787    return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
     
    160160        data[field] = dm.get(field)
    161161data['reg_no'] = reg_no
    162 data['screening_type'] = application_type
     162data['screening_type'] = screening_type
    163163if apply_admission:
    164164    if submitted:
  • WAeUP_SRP/base/skins/waeup_student/apply_admission_form.pt

    r2323 r2324  
    2222        <form action="" id="editForm" method="post"
    2323              enctype="multipart/form-data" class="workflow"
    24               tal:attributes="action string:${context/absolute_url}/apply_admission/${info/application_type}"
     24              tal:attributes="action string:${context/absolute_url}/apply_admission/${info/screening_type}"
    2525              >
    26           <input type="hidden" name="application_type"
    27                  tal:attributes="value info/application_type|nothing"
    28                  tal:condition="info/application_type|nothing"/>
     26          <input type="hidden" name="screening_type"
     27                 tal:attributes="value info/screening_type|nothing"
     28                 tal:condition="info/screening_type|nothing"/>
    2929          <input type="hidden" name="reg_no"
    3030                 tal:attributes="value ds/reg_no|nothing"
     
    6565            <p>Instructions :</p>
    6666            <ul>
    67               <li>Enter your <span tal:condition="python:not info['application_type']=='prence'">JAMB Registration Number and the</span> Application PIN.</li>
     67              <li>Enter your <span tal:condition="python:not info['screening_type']=='prence'">JAMB Registration Number and the</span> Application PIN.</li>
    6868              <li>Fill the form and upload your Passport Photograph with red background in jpg format.</li>
    6969              <li>Save and preview picture.
Note: See TracChangeset for help on using the changeset viewer.