Changeset 1413 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
13 Feb 2007, 14:44:45 (18 years ago)
Author:
Henrik Bettermann
Message:

sex and level from returning_import not from students_catalog

Location:
WAeUP_SRP/trunk/skins
Files:
4 edited

Legend:

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

    r1411 r1413  
    1 ## Script (Python) "getSessionResults"
    2 ##bind container=container
    3 ##bind context=context
    4 ##bind namespace=
    5 ##bind script=script
    6 ##bind subpath=traverse_subpath
    7 ##parameters=
    8 ##title=
    9 ##
    101# $Id: display_session_results.py 1166 2006-12-31 18:11:47Z henrik $
    112"""
     
    9990    gpa = float(gpa) / course_count
    10091    gpa = "%4.2f" % gpa
    101 if student_from_cat.sex:
    102     info['sex'] = 'F'
    103 else:
    104     info['sex'] = 'M'
    105 info['level'] = int(student_from_cat.level)-100
     92   
     93# not available at the beginning   
     94#if student_from_cat.sex:
     95#    info['sex'] = 'F'
     96#else:
     97#    info['sex'] = 'M'
     98#info['level'] = int(student_from_cat.level)-100
     99
    106100info['verdict'] = verdict
    107101info['session'] = session
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_slip.pt

    r1411 r1413  
    2424        </tr>
    2525        <tr>
    26           <th>Sex:</th><td tal:content="info/sex" />                     
     26          <th>Sex:</th><td tal:content="info/student_from_returning/Sex" />                     
    2727        </tr>
    2828        <tr>
     
    3030        </tr>
    3131        <tr>
    32           <th>Level:</th><td tal:content="info/level" />                     
     32          <th>Level:</th><td tal:content="info/student_from_returning/Level" />                     
    3333        </tr>
    3434      </table>
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_view.pt

    r1411 r1413  
    22    <metal:main fill-slot="main"
    33                tal:define="info context/getSessionResults">
    4       <div style="text-align: right">
    5         <a href="" target="slip" tal:attributes="href string:session_results_slip"
     4      <div tal:condition="nothing" style="text-align: right">
     5        <a href="" target="slip" tal:attributes="href string:session_results_slip?nr=${info/student/matric_no}"
    66           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')">
    77          <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
    8           Sessional Result Slip
     8          Session Result Slip
    99        </a>
    1010      </div>
     
    2424        </tr>
    2525        <tr>
    26           <th>Sex:</th><td tal:content="info/sex" />                     
     26          <th>Sex:</th><td tal:content="info/student_from_returning/Sex" />                     
    2727        </tr>
    2828        <tr>
     
    3030        </tr>
    3131        <tr>
    32           <th>Level:</th><td tal:content="info/level" />                     
     32          <th>Level:</th><td tal:content="info/student_from_returning/Level" />                     
    3333        </tr>
    3434      </table>
     
    7171        </span>
    7272      </table>
    73       <br />
    74       <form action="" method="post"
    75             tal:attributes="action string:${context/portal_url}/personal_edit_form">
    76         <input type="submit"
    77                class="standalone"
    78                value="Continue to Personal Data Page!"
    79                name="submit" />
    80       </form>
     73
    8174    </metal:main>
    8275</metal:body>
    8376
    84              
  • WAeUP_SRP/trunk/skins/waeup_utilities/createReturningStudent.py

    r1260 r1413  
    3131    sid,jamb_reg_no = context.waeup_tool.createOne(students_folder,student_brain,'?')
    3232    logger.info('"%s","Created Student","%s", "%s" ' % (member,sid,matric_no))
    33     return "Student MatricNo %s, StudentId %s Jamb %s created" % (matric_no,sid,jamb_reg_no)
     33    return "Student MatricNo %s, StudentId %s (JAMBRegNo %s) created" % (matric_no,sid,jamb_reg_no)
    3434
    3535matric_nos = context.returning_import.uniqueValuesFor('matric_no')
Note: See TracChangeset for help on using the changeset viewer.