Changeset 1411


Ignore:
Timestamp:
12 Feb 2007, 22:42:05 (18 years ago)
Author:
Henrik Bettermann
Message:

names from students_catalog

Location:
WAeUP_SRP/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1406 r1411  
    262262        da['app_email'] = dp['email'] = email
    263263        da['app_mobile'] = dp['phone'] = phone_nr
    264         da['jamb_firstname'] = dp['firstname'] = student.Firstname
    265         da['jamb_middlename'] = dp['middlename'] = student.Middlename
    266         da['jamb_lastname'] = dp['lastname'] = student.Lastname
     264        dp['firstname'] = student.Firstname
     265        dp['middlename'] = student.Middlename
     266        dp['lastname'] = student.Lastname
     267        da['jamb_lastname'] = "%s %s %s" % (student.Firstname,student.Middlename,student.Lastname)
    267268        da['jamb_sex'] = student.Sex
    268269        dp['sex'] = student.Sex == 'F'
  • WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py

    r1317 r1411  
    5151res = scatalog(id = student_id)
    5252matric_no = res[0].matric_no
     53student_from_cat = res[0]
    5354
    5455res = returning(matric_no = matric_no)
    55 student = res[0]
     56student_from_returning = res[0]
    5657res = results(matric_no = matric_no)
    5758results = res
     
    9899    gpa = float(gpa) / course_count
    99100    gpa = "%4.2f" % gpa
     101if student_from_cat.sex:
     102    info['sex'] = 'F'
     103else:
     104    info['sex'] = 'M'
     105info['level'] = int(student_from_cat.level)-100
    100106info['verdict'] = verdict
    101107info['session'] = session
    102108info['gpa'] = gpa
    103109info['results'] = (sem1, sem2)
    104 info['student'] = student
     110info['student_from_returning'] = student_from_returning
     111info['student'] = student_from_cat
    105112info['s_id'] = student_id
    106113return info
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_slip.pt

    r1292 r1411  
    99        </a>
    1010      </div>
    11       <h3>Session Results of <span tal:content="info/student/Firstname" />
    12         <span tal:content="info/student/Middlename" />
    13         <span tal:content="info/student/Lastname" />
     11      <h3>Session Results of <span tal:content="info/student/name" />
    1412      </h3>
    1513      <br />
     
    2624        </tr>
    2725        <tr>
    28           <th>Sex:</th><td tal:content="info/student/Sex" />                     
     26          <th>Sex:</th><td tal:content="info/sex" />                     
    2927        </tr>
    3028        <tr>
    31           <th valign="top">Course of Study:</th><td tal:content="info/student/Coursemajor" />                     
     29          <th valign="top">Course of Study:</th><td tal:content="info/student_from_returning/Coursemajor" />                     
    3230        </tr>
    3331        <tr>
    34           <th>Level:</th><td tal:content="info/student/Level" />                     
     32          <th>Level:</th><td tal:content="info/level" />                     
    3533        </tr>
    3634      </table>
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_view.pt

    r1292 r1411  
    99        </a>
    1010      </div>
    11       <h3>Session Results of <span tal:content="info/student/Firstname" />
    12         <span tal:content="info/student/Middlename" />
    13         <span tal:content="info/student/Lastname" />
     11      <h3>Session Results of <span tal:content="info/student/name" />
    1412      </h3>
    1513      <br />
     
    2624        </tr>
    2725        <tr>
    28           <th>Sex:</th><td tal:content="info/student/Sex" />                     
     26          <th>Sex:</th><td tal:content="info/sex" />                     
    2927        </tr>
    3028        <tr>
    31           <th valign="top">Course of Study:</th><td tal:content="info/student/Coursemajor" />                     
     29          <th valign="top">Course of Study:</th><td tal:content="info/student_from_returning/Coursemajor" />                     
    3230        </tr>
    3331        <tr>
    34           <th>Level:</th><td tal:content="info/student/Level" />                     
     32          <th>Level:</th><td tal:content="info/level" />                     
    3533        </tr>
    3634      </table>
Note: See TracChangeset for help on using the changeset viewer.