Changeset 3103 for WAeUP_SRP


Ignore:
Timestamp:
4 Feb 2008, 14:19:06 (17 years ago)
Author:
joachim
Message:

do not show score in uniben,

Location:
WAeUP_SRP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/study_level_view.pt

    r2956 r3103  
    99    <span tal:condition="info">
    1010    <span tal:define= "is_so context/isSectionOfficer;
    11                        is_ca info/is_ca;
    12                        show_check_boxes info/show_check_boxes;
    13                        has_verdict info/has_verdict;
    14                        submission_allowed info/submission_allowed;
    15                        rejection_allowed info/rejection_allowed;
    16                        is_current_level info/is_current_level;
    17                        is_student info/is_student;
    18                        ">       
     11    is_ca info/is_ca;
     12    show_check_boxes info/show_check_boxes;
     13    has_verdict info/has_verdict;
     14    submission_allowed info/submission_allowed;
     15    rejection_allowed info/rejection_allowed;
     16    is_current_level info/is_current_level;
     17    is_student info/is_student;
     18    with_score not: info/without_score|nothing;
     19    ">       
    1920    <div style="text-align: right"
    2021         tal:condition="rejection_allowed">
     
    8384        <th align='center'>sm</th>
    8485        <th align='center'>cr</th>
    85         <th align='center'>sc</th>
     86        <th tal:condition="with_score" align='center'>sc</th>
    8687        <th align='center'>gr</th>
    8788        <th align='center'>wt</th>
     
    107108          <td align="center" width="2%"><span tal:content="row/semester" /></td>
    108109          <td align="center" width="2%" tal:content="row/credits"></td>
    109           <td align="center" width="4%" tal:content="row/score"></td>
     110          <td tal:condition="with_score" align="center" width="4%" tal:content="row/score"></td>
    110111          <td align="center" width="2%" tal:content="row/grade"></td>
    111112          <td align="center" width="2%" tal:content="row/weight"></td>
     
    137138        <th align='center'>sm</th>
    138139        <th align='center'>cr</th>
    139         <th align='center'>sc</th>
     140        <th tal:condition="with_score" align='center'>sc</th>
    140141        <th align='center'>gr</th>
    141142        <th align='center'>wt</th>
     
    159160          <td align="center" width="2%"><span tal:content="row/semester" /></td>
    160161          <td align="center" width="2%" tal:content="row/credits"></td>
    161           <td align="center" width="4%" tal:content="row/score"></td>
     162          <td tal:condition="with_score" align="center" width="4%" tal:content="row/score"></td>
    162163          <td align="center" width="2%" tal:content="row/grade"></td>
    163164          <td align="center" width="2%" tal:content="row/weight"></td>
     
    191192          <td align="center" width="2%"><span tal:content="row/semester" /></td>
    192193          <td align="center" width="2%" tal:content="row/credits"></td>
    193           <td align="center" width="4%" tal:content="row/score"></td>
     194          <td tal:condition="with_score" align="center" width="4%" tal:content="row/score"></td>
    194195          <td align="center" width="2%" tal:content="row/grade"></td>
    195196          <td align="center" width="2%" tal:content="row/weight"></td>
     
    212213      <tr><th>sm:</th> <td>Semester</td></tr>
    213214      <tr><th>cr:</th> <td>Credits</td></tr>
    214       <tr><th>sc:</th> <td>Score</td></tr>
     215      <tr tal:condition="with_score"><th>sc:</th> <td>Score</td></tr>
    215216      <tr><th>gr: </th> <td>Grade</td></tr>
    216217      <tr><th>wt: </th> <td>Weight</td></tr>
  • WAeUP_SRP/uniben/waeup_custom/getStudyLevelInfo.py

    r3101 r3103  
    100100info['carry_overs'] = carry_overs
    101101# normal.sort(cmp_semester_id)
     102info['without_score'] = without_score = True
     103if without_score:
     104    for rows in (normal1,normal2,normal3):
     105        for row in rows:
     106            row['score'] = 0
     107       
    102108info['normal1'] = normal1
    103109info['normal2'] = normal2
     
    111117info['app'] = student.application
    112118info['app_doc'] = student.application.getContent()
    113 
    114119return info
Note: See TracChangeset for help on using the changeset viewer.