Changeset 1805


Ignore:
Timestamp:
22 May 2007, 20:46:45 (18 years ago)
Author:
Henrik Bettermann
Message:

preparations for viewing CEST results

Location:
WAeUP_SRP/trunk
Files:
2 added
10 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r1802 r1805  
    123123
    124124        csv_d = {'jamb_reg_no': "reg_no",
    125                  'name': "Firstame" + "Middlename" +"Lastname",
     125                 'name': "fullname",
    126126                 'score': "pume_score",
    127127                 'sex': "sex",
    128128                 'course': "study_course",
     129                 'course_code_org': "study_course",
    129130                 'status': "admission_status",
    130131                 'result_type': "entry_mode",
    131132                 }
    132                                  
     133
    133134        csv_fields = [f[1] for f in csv_d.items() if f[1]]
    134135        tr_count = 0
    135136        total = 0
    136137        #name = 'pup_new'
    137         name = 'pup_update'
     138        #name = 'pup_update'
     139        name = 'Admitted'
    138140        update = name.endswith('update')
    139141        no_import = []
     
    165167            for f,fn in csv_d.items():
    166168                dict[f] = jamb.get(csv_d[f])
    167             dict['result_type'] = 'DE'
     169            dict['result_type'] = 'CEST'
    168170            jnr = jamb.get(csv_d['jamb_reg_no'])
    169             if not checkJambNo(jnr):
    170                 logger.info(einvalidjamb % jamb)
    171                 dd = {}
    172                 for f,fn in csv_d.items():
    173                     dd[fn] = getattr(data,f)
    174                     no_import.append(eduplicate % dd)
    175                     no_import.append(eduplicate % jamb)
    176                 continue
     171            #if not checkJambNo(jnr):
     172            #    logger.info(einvalidjamb % jamb)
     173            #    dd = {}
     174            #    for f,fn in csv_d.items():
     175            #        dd[fn] = getattr(data,f)
     176            #        no_import.append(eduplicate % dd)
     177            #        no_import.append(eduplicate % jamb)
     178            #    continue
    177179            res = pume(jamb_reg_no=jnr)
    178180            if len(res) > 0:
     
    248250                 'study_course': "study_course",
    249251                 'perm_address': "address",
     252                 'admission_status': "admission_status",
    250253                 }
    251254        csv_fields = [f[1] for f in csv_d.items()]
     
    269272            return
    270273        for result in results:
     274            if not result.get(csv_d['admission_status']).startswith('Admitted'):
     275                continue
    271276            #result['Error'] = "Processing "
    272277            #logger.info(format % result)
  • WAeUP_SRP/trunk/Widgets.py

    r1804 r1805  
    195195            datastructure.setError(widget_id, "'%s' not a valid session key" % value)
    196196            return 0
    197        
     197
    198198        if len(v) == 1:
    199199            v = value = '0%c' % v
     
    265265            datastructure.setError(widget_id, "'%s' not a valid level key" % value)
    266266            return 0
    267        
    268         if not value: 
     267
     268        if not value:
    269269            v = value = '100'
    270270        #import pdb;pdb.set_trace()
     
    525525            pume = jamb_nr_catalog(jamb_reg_no = value)
    526526            if len(pume) < 1:
    527                 err = 'No student with Registration Number %s' % (value)
     527                err = 'No student record with registration number %s.' %value
    528528            else:
    529529                datastructure['pume'] = pume[0]
     
    998998            if datastructure.errors:
    999999                do = 0
    1000                 datastructure.setError(widget_id, 'errors in other data, PIN neither checked nor used')
     1000                datastructure.setError(widget_id, 'PIN neither checked nor used.')
    10011001                s_logger.info('%s/%s entered wrong data together with PIN %s' % (s_id,ref,pin_str))
    10021002        while do:
  • WAeUP_SRP/trunk/profiles/default/actionicons.xml

    r1783 r1805  
    163163              icon_expr="actionicon_user_preferences.png"/>
    164164
    165  <action-icon category="student" action_id="login_staff"
    166               title="Staff Login" priority="0"
    167               icon_expr="actionicon_login.png"/>
    168165 <action-icon category="object" action_id="unchecked"
    169166              title="Unchecked Items" priority="12"
     
    215212              action_id="support" title="Enquiries"
    216213              priority="5" icon_expr="blank.gif"/>
    217              
     214
    218215 <action-icon category="student_object" action_id="slip"
    219216              title="Acknowledegement Slip" priority="1"
    220217              icon_expr="bell.png"/>
    221              
     218
     219 <action-icon category="student" action_id="login_staff"
     220              title="Staff Login" priority="0"
     221              icon_expr="actionicon_login.png"/>
    222222 <action-icon category="student" action_id="login_student"
    223223              title="Student Login" priority="0"
     
    232232              title="Display PDE Results" priority="3"
    233233              icon_expr="zoom.png"/>
     234 <action-icon category="student" action_id="display_cest_results"
     235              title="Display CEST Results" priority="4"
     236              icon_expr="zoom.png"/>
    234237 <action-icon category="student" action_id="check_admission"
    235               title="Check if admitted" priority="4"
     238              title="Check if admitted" priority="5"
    236239              icon_expr="bell.png"/>
    237240 <action-icon category="student" action_id="display_session_results"
    238               title="Display Session Results" priority="5"
     241              title="Display Session Results" priority="6"
    239242              icon_expr="bell.png"/>
    240243 <action-icon category="student" action_id="firsttime_login"
    241               title="Register for Previous Sessions" priority="6"
    242               icon_expr="bell.png"/>
    243  <action-icon category="student" action_id="register_courses"
    244               title="Register Courses" priority="5"
     244              title="Register for Previous Sessions" priority="7"
    245245              icon_expr="bell.png"/>
    246246 <action-icon category="student" action_id="request_transfer"
    247               title="Request Transfer" priority="6"
     247              title="Request Transfer" priority="8"
    248248              icon_expr="arrow_switch.png"/>
    249249 <action-icon category="student" action_id="change_password"
    250               title="Change Password" priority="7"
     250              title="Change Password" priority="9"
    251251              icon_expr="actionicon_user_preferences.png"/>
    252252
  • WAeUP_SRP/trunk/profiles/default/actions.xml

    r1785 r1805  
    130130   <permission>View</permission>
    131131  </action>
     132  <action title="View CEST Results" action_id="display_cest_results"
     133     category="student" condition_expr="not:member"
     134     url_expr="string:${portal_url}/display_cest_results" visible="True">
     135   <permission>View</permission>
     136  </action> 
    132137  <action title="Check Admission" action_id="check_admission"
    133138     category="student" condition_expr="not:member"
  • WAeUP_SRP/trunk/profiles/default/layouts/student_application_search.xml

    r1449 r1805  
    99 <property name="validate_values_expr"></property>
    1010 <widget name="jamb_reg_no" meta_type="JambRegNo Widget">
    11   <property name="title">JAMB Registration Number</property>
     11  <property name="title">Registration Number</property>
    1212  <property name="fields">
    1313   <element value="jamb_reg_no"/>
    1414  </property>
    15   <property name="is_required">True</property> 
    16   <property name="label">JAMB Registration Number</property>
    17   <property name="label_edit">JAMB Registration Number</property>
     15  <property name="is_required">True</property>
     16  <property name="label">Registration Number</property>
     17  <property name="label_edit">Registration Number</property>
    1818  <property name="readonly_layout_modes">
    1919   <element value="edit"/>
     
    2121  <property name="hidden_layout_modes"/>
    2222  <property name="hidden_readonly_layout_modes"/>
    23   <property name="display_width">10</property>
    24   <property name="size_max">10</property>
     23  <property name="display_width">13</property>
     24  <property name="size_max">13</property>
     25  <property name="catalog">portal_pumeresults</property>
    2526 </widget>
    2627 <table>
  • WAeUP_SRP/trunk/skins/waeup_default/srp_anonymous_view.pt

    r1800 r1805  
    5454          <h2>New Students</h2>
    5555
    56           <p>can view their 2006 PUME/PDE results and admission status (free of charge):</p>
     56          <p>can view their 2006 PUME/PDE/CEST results and admission status (free of charge):</p>
    5757          <br />
    5858          <ul>
    59           <li> Simply click "View PUME or PDE Results", </li>
    60           <li> enter your JAMB Registration Number and  </li>
     59          <li> Simply click "View PUME, PDE or CEST Results", </li>
     60          <li> enter your Registration Number and  </li>
    6161          <li> press the "Search" button. </li>
    6262          </ul>
    6363          <br />
    64           <p>Your PUME/PDE result record will be shown.</p>
     64          <p>Your result record will be shown.</p>
    6565         
    6666          <p>If you are admitted, proceed with checking your admission details: </p>
     
    6868          <ul>
    6969          <li>Buy your Admission Checking Scratch Card,</li>
    70           <li>click "Check Adm. Details",</li>
    71           <li>enter your JAMB Registration Number and your Admission Checking PIN (prefix APP)</li>
     70          <li>click "Check Admission",</li>
     71          <li>enter your Registration Number and your Admission Checking PIN (prefix APP)</li>
    7272          <li>press the "Check" button,</li>
    7373          <li>print your admission slip and log out.</li>
  • WAeUP_SRP/trunk/skins/waeup_student/check_admission_pin_form.pt

    r1784 r1805  
    2020          <ul>
    2121            <li>Buy an Application Scratch Card.</li>
    22             <li>Enter your JAMB Registration Number and the Admission PIN.</li>
     22            <li>Enter your Registration Number and the Admission PIN.</li>
    2323            <li>If you already checked admission, you can use this form to retrieve your Student Id but not
    2424                to log in. <strong><font color="red">You must proceed to "Student Login".</font></strong></li>
  • WAeUP_SRP/trunk/skins/waeup_student/entry_results_anon_slip.pt

    r1737 r1805  
    44   
    55   
    6        <span tal:condition="python:pume['result_type']!='DE'">
     6       <span tal:condition="python:pume['result_type'] not in ('DE','CEST')">
    77         <h3>PUME Results of <span tal:content="pume/name" /></h3>
    88       </span>
     
    1212       </span>         
    1313
     14       <span tal:condition="python:pume['result_type']=='CEST'">
     15         <h3>CEST Results of <span tal:content="pume/name" /></h3>
     16       </span>       
    1417
    1518       <br />     
  • WAeUP_SRP/trunk/skins/waeup_student/entry_results_anon_view.pt

    r1292 r1805  
    44                      result_type pume/result_type">
    55
    6         <span tal:condition="python:result_type !='DE'">       
     6                     
     7        <span tal:condition="python:result_type not in ('DE','CEST')">       
    78        <div style="text-align: right">
    89        <a href="" target="slip" tal:attributes="href string:entry_results_anon_slip?nr=${pume/jamb_reg_no}"
     
    1516        </span>       
    1617                     
     18
    1719        <span tal:condition="python:result_type == 'DE'">
    1820        <div style="text-align: right">
     
    2527          <h3>PDE Results of <span tal:content="pume/name" /></h3>
    2628        </span>     
     29       
     30        <span tal:condition="python:result_type == 'CEST'">
     31        <div style="text-align: right">
     32        <a href="" target="slip" tal:attributes="href string:entry_results_anon_slip?nr=${pume/jamb_reg_no}"
     33            onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')">
     34            <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
     35            PDE Result Slip
     36        </a>
     37        </div>         
     38          <h3>CEST Results of <span tal:content="pume/name" /></h3>
     39        </span>             
    2740       
    2841       <br />             
     
    3750       <table>
    3851        <tr>
    39           <th>JAMB Registration Number:</th><td tal:content="pume/jamb_reg_no"></td>
     52          <th>Registration Number:</th><td tal:content="pume/jamb_reg_no"></td>
    4053        </tr>
    4154        <tr>
  • WAeUP_SRP/trunk/skins/waeup_student/firsttime_login_form.pt

    r1783 r1805  
    11<metal:block use-macro="here/main_template/macros/master">
    2  <metal:block fill-slot="main"
    3          tal:define="rendered_main options/rendered;
    4              portal_status_message options/psm;
    5              data_storage options/ds;
    6              edition python:1;">
    7     <h3>Data not yet imported!</h3>
    8   </metal:block>
     2
    93 
    10   <metal:block fill-slot="mainx" tal:condition="python:0"
     4  <metal:block fill-slot="main" tal:condition="python:1"
    115         tal:define="rendered_main options/rendered;
    126             portal_status_message options/psm;
Note: See TracChangeset for help on using the changeset viewer.