Changeset 2707 for WAeUP_SRP


Ignore:
Timestamp:
19 Nov 2007, 07:18:47 (17 years ago)
Author:
Henrik Bettermann
Message:

total numbers changed

Location:
WAeUP_SRP/base/skins/waeup_statistics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_statistics/getSimpleStudentStatistics.py

    r2705 r2707  
    8585dict['total_Bdp'] = len(res_Bpt)
    8686
    87 res_Cft = context.students_catalog(review_state = catC, mode = full_time)
     87res_Cft = context.students_catalog(review_state = catC, mode = full_time, session = current_session)
    8888dict['total_Cft'] = len(res_Cft)
    8989
    90 res_Cpt = context.students_catalog(review_state = catC, mode = part_time)
     90res_Cpt = context.students_catalog(review_state = catC, mode = part_time, session = current_session)
    9191dict['total_Cpt'] = len(res_Cpt)
    9292
    93 res_Cdp = context.students_catalog(review_state = catC, mode = diploma)
     93res_Cdp = context.students_catalog(review_state = catC, mode = diploma, session = current_session)
    9494dict['total_Cdp'] = len(res_Cdp)
    9595
     
    9797res_total = context.students_catalog()
    9898dict['total_in_catalog'] = len(res_total)
    99 dict['not_categorized'] = dict['total_in_catalog'] - dict['total_Aft'] - dict['total_Apt'] - dict['total_Adp'] - dict['total_Cft'] - dict['total_Cpt'] - dict['total_Cdp']
     99dict['not_categorized'] = dict['total_in_catalog'] - dict['total_ft'] - dict['total_pt'] - dict['total_dp']
    100100
    101101l.append(dict)
     
    134134    dict['total_Bdp'] = len(res_Bpt)
    135135
    136     res_Cft = context.students_catalog(faculty = f.getId, review_state = catC, mode = full_time)
     136    res_Cft = context.students_catalog(faculty = f.getId, review_state = catC, mode = full_time, session = current_session)
    137137    dict['total_Cft'] = len(res_Cft)
    138138
    139     res_Cpt = context.students_catalog(faculty = f.getId, review_state = catC, mode = part_time)
     139    res_Cpt = context.students_catalog(faculty = f.getId, review_state = catC, mode = part_time, session = current_session)
    140140    dict['total_Cpt'] = len(res_Cpt)
    141141
    142     res_Cdp = context.students_catalog(faculty = f.getId, review_state = catC, mode = diploma)
     142    res_Cdp = context.students_catalog(faculty = f.getId, review_state = catC, mode = diploma, session = current_session)
    143143    dict['total_Cdp'] = len(res_Cdp)
    144144
  • WAeUP_SRP/base/skins/waeup_statistics/statistics_simple_view.pt

    r2705 r2707  
    119119        <tr><td>Category A: </td> <td>students who paid their school fee in <span tal:content="session_str" /></td></tr>
    120120        <tr><td>Category B: </td> <td>students who registered their courses online (A contains B) in <span tal:content="session_str" /></td></tr>
    121         <tr><td>Category C: </td> <td>students who have not yet paid their school fee in <span tal:content="session_str" /></td></tr>
     121        <tr><td>Category C: </td> <td>students who 'arrived' in <span tal:content="session_str" /> but have not yet paid their school fee</td></tr>
    122122        <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
    123         <tr><td colspan="2">
     123        <tr><td colspan="2"><strong>Remark:</strong> <span tal:content="python: faculties[0]['not_categorized']" /> returning students have not yet logged in and are thus not categorized.
    124124             </td>
    125125        </tr>
Note: See TracChangeset for help on using the changeset viewer.