Changeset 4303 for WAeUP_SRP


Ignore:
Timestamp:
17 Jun 2009, 13:54:33 (16 years ago)
Author:
Henrik Bettermann
Message:

calculate and show position in course (see also previous revision)

Location:
WAeUP_SRP/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/ois/course_results.xml

    r3727 r4303  
    1717 <column value="grade"/>
    1818 <column value="lecturer"/>
     19 <column value="pic"/>
    1920 <index name="key" meta_type="FieldIndex">
    2021  <indexed_attr value="key"/>
  • WAeUP_SRP/trunk/skins/waeup_ois/academic_report_slip.pt

    r4098 r4303  
    3636            <tr>
    3737                <td>Year Group Average:</td><td> <span tal:content="python:info[sem[4]]" /> (<span tal:content="python:info[sem[5]]" /> overall marks)</td>
    38             </tr>           
     38            </tr>     
    3939        </table>
    4040        <br />   <br />                 
     
    4949                        <th align='center'>Overall <br />Marks</th>
    5050                        <th align='center'>Grade</th>
     51                        <th align='center'>PiS</th>
    5152                        <th tal:condition="is_so" align='center'>
    5253                        </th>
     
    6162                        <td align="center" tal:content="row/score_calc"></td>
    6263                        <td align="center" tal:content="row/grade"></td>
     64                        <td align="center" tal:content="row/pic"></td>
    6365                    </tr>
    6466                    <tr><td>&nbsp;</td>
  • WAeUP_SRP/trunk/skins/waeup_ois/academic_report_view.pt

    r4028 r4303  
    8989        <th tal:attributes="colspan python: test(show_check_boxes,'2','1')"
    9090            tal:content="python:sem[1]" />
     91        <th align='center'>Code</th>   
    9192        <th align='center'>Attitude To Learning</th>   
    9293        <th align='center'>CA 1 <br />Marks</th>
     
    9596        <th align='center'>Overall <br />Marks</th>
    9697        <th align='center'>Grade</th>
     98        <th align='center'>PiS</th>
    9799        <th tal:condition="submission_allowed" align='center'></th>   
    98100        <th tal:condition="is_so" align='center'></th>
     
    111113          </td>
    112114          <td tal:content="row/title"></td>
     115          <td align="center" tal:content="row/code"></td>
    113116          <td align="center" tal:content="python:context.portal_vocabularies.pastoral_grade.get(row['atl'])"></td>
    114117          <td align="center" tal:content="row/ca1"></td>
     
    117120          <td align="center" tal:content="row/score_calc"></td>
    118121          <td align="center" tal:content="row/grade"></td>
     122          <td align="center" tal:content="row/pic"></td>
    119123         
    120124          <td tal:condition="python:submission_allowed and is_student and False" align="center">
  • WAeUP_SRP/trunk/skins/waeup_ois/getStudyLevelInfo.py

    r4098 r4303  
    145145
    146146session_id = level_doc.session
    147 yga1,yga2,yga3,counter1,counter2,counter3 = course_results.getYearGroupAverage(session_id,level_id)
     147yga1,yga2,yga3,counter1,counter2,counter3,yg1,yg2,yg3 = course_results.getYearGroupAverage(session_id,level_id)
    148148info['yga1'] = yga1
    149149info['yga2'] = yga2
     
    153153info['counter3'] = counter3
    154154
     155
     156#yg1.sort(reverse=True)
     157#if not len(yg1):
     158#    pos1 = 'no result'
     159#for pos1 in range(len(yg1)):
     160#    if yg1[pos1] <= float(score_calc_average_1):
     161#        break
     162#info['pos1'] = '%d of %d' % (pos1+1,len(yg1))
     163
    155164#end customization
    156165
Note: See TracChangeset for help on using the changeset viewer.