Changeset 1429 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
17 Feb 2007, 10:48:28 (18 years ago)
Author:
Henrik Bettermann
Message:
  • Name, Level, MatricNo? and Sex are taken from the students_catalog
  • Course from returning_import
  • Verdict, GPA and Session from results_import
Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
3 edited

Legend:

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

    r1417 r1429  
    9595    gpa = float(gpa) / course_count
    9696    gpa = "%4.2f" % gpa
    97    
    98 # not available at the beginning   
    99 #if student_from_cat.sex:
    100 #    info['sex'] = 'F'
    101 #else:
    102 #    info['sex'] = 'M'
    103 #info['level'] = int(student_from_cat.level)-100
     97
     98if student_from_cat.level:
     99    if student_from_cat.sex:
     100        info['sex'] = 'F'
     101    else:
     102        info['sex'] = 'M'
     103    info['level'] = int(student_from_cat.level)-100
     104else:
     105    info['sex'] = 'na'
     106    info['level'] = 'na'
    104107
    105108info['verdict'] = verdict
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_slip.pt

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

    r1413 r1429  
    2424        </tr>
    2525        <tr>
    26           <th>Sex:</th><td tal:content="info/student_from_returning/Sex" />                     
     26          <th>Sex:</th><td tal:content="info/sex" />                     
    2727        </tr>
    2828        <tr>
     
    3030        </tr>
    3131        <tr>
    32           <th>Level:</th><td tal:content="info/student_from_returning/Level" />                     
     32          <th>Level:</th><td tal:content="info/level" />                     
    3333        </tr>
    3434      </table>
Note: See TracChangeset for help on using the changeset viewer.