Changeset 4395


Ignore:
Timestamp:
11 Jul 2009, 19:03:56 (15 years ago)
Author:
Henrik Bettermann
Message:

customize ois student_study_level schema and add position parameters to academic_report_slip

Location:
WAeUP_SRP/trunk
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/schemas/import_student_study_level.xml

    r3689 r4395  
    88 <field name="session" meta_type="CPS String Field"/>
    99 <field name="verdict" meta_type="CPS String Field"/>
    10  <field name="validated_by" meta_type="CPS String Field"/>
    11  <field name="validation_date" meta_type="CPS DateTime Field"/>
    1210</object>
  • WAeUP_SRP/trunk/profiles/default/schemas/student_study_level.xml

    r4393 r4395  
    77 <field name="validation_date" meta_type="CPS DateTime Field"/>
    88 <field name="verdict" meta_type="CPS String Field"/>
    9  <field name="no_stud_year" meta_type="CPS String Field"/>
    10  <field name="over_pos_year" meta_type="CPS String Field"/>
    119</object>
  • WAeUP_SRP/trunk/skins/waeup_ois/academic_report_slip.pt

    r4305 r4395  
    1212                                       term_complete info/complete1;
    1313                                       term options/term;
    14                                        sem_series python:(('Term One','normal1','complete1','score_calc_average_1','yga1','counter1','date1'),
    15                                                           ('Term Two','normal2','complete2','score_calc_average_2','yga2','counter2','date2'),
    16                                                           ('Term Three','normal3','complete3','score_calc_average_3','yga3','counter3','date3'));
     14                                       sem_series python:(('Term One','normal1','complete1','score_calc_average_1','yga1','counter1','date1','over_pos_term1','no_stud_term1'),
     15                                                          ('Term Two','normal2','complete2','score_calc_average_2','yga2','counter2','date2','over_pos_term2','no_stud_term2'),
     16                                                          ('Term Three','normal3','complete3','score_calc_average_3','yga3','counter3','date3','over_pos_term3','no_stud_term3'));
    1717                                       sem python:sem_series[int(term)-1];
    1818                                       ">
     
    3737                <td>Year Group Average:</td><td> <span tal:content="python:info[sem[4]]" /> (<span tal:content="python:info[sem[5]]" /> overall marks)</td>
    3838            </tr>     
     39            <tr>
     40                <td>Overall Position in Year:</td><td> <span tal:content="python:info[sem[7]]" /> </td>
     41            </tr>     
     42            <tr>
     43                <td>Number of Students in Year:</td><td> <span tal:content="python:info[sem[8]]" /> </td>
     44            </tr>                             
    3945        </table>
    4046        <br />   <br />                 
  • WAeUP_SRP/trunk/skins/waeup_ois/getStudyLevelInfo.py

    r4303 r4395  
    198198    info['date3'] = 'n/a'
    199199
     200info['over_pos_term1'] = getattr(level_doc, 'over_pos_term1','n/a')
     201info['no_stud_term1'] = getattr(level_doc, 'no_stud_term1','n/a')
    200202
    201203return info
Note: See TracChangeset for help on using the changeset viewer.