Changeset 4036 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
1 Apr 2009, 08:40:55 (16 years ago)
Author:
Henrik Bettermann
Message:

implement year group average

Location:
WAeUP_SRP/trunk/skins/waeup_ois
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_ois/academic_report_slip.pt

    r4035 r4036  
    1212                                       term_complete info/complete1;
    1313                                       term options/term;
    14                                        sem_series python:(('Term One','normal1','complete1','score_calc_average_1'),('Term Two','normal2','complete2','score_calc_average_2'),('Term Three','normal3','complete3','score_calc_average_3'));
     14                                       sem_series python:(('Term One','normal1','complete1','score_calc_average_1','yga1','counter1'),('Term Two','normal2','complete2','score_calc_average_2','yga2','counter2'),('Term Three','normal3','complete3','score_calc_average_3','yga3','counter3'));
    1515                                       sem python:sem_series[int(term)-1];
    1616                                       ">
     
    3232                <td>Student's Average:</td><td tal:content="python:info[sem[3]]"></td>
    3333            </tr>
     34            <tr>
     35                <td>Year Group Average:</td><td> <span tal:content="python:info[sem[4]]" /> (<span tal:content="python:info[sem[5]]" /> students)</td>
     36            </tr>           
    3437        </table>
    3538        <br />   <br />                 
  • WAeUP_SRP/trunk/skins/waeup_ois/getStudyLevelInfo.py

    r4035 r4036  
    141141info['score_calc_average_3'] =  '%.2f' % score_calc_average_3 
    142142
     143session_id = level_doc.session
     144yga1,yga2,yga3,counter1,counter2,counter3 = course_results.getYearGroupAverage(session_id,level_id)
     145info['yga1'] = yga1
     146info['yga2'] = yga2
     147info['yga3'] = yga3
     148info['counter1'] = counter1
     149info['counter2'] = counter2
     150info['counter3'] = counter3
    143151
    144152#end customization
Note: See TracChangeset for help on using the changeset viewer.