Ignore:
Timestamp:
27 Jul 2007, 13:56:17 (17 years ago)
Author:
Henrik Bettermann
Message:

see comment 07/27/07 13:57:14 in ticket #315

basic student statistics included

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getNewStudentStatistics.py

    r2067 r2068  
    2020    return 'Not allowed'
    2121
    22 entry_sessions = ('06','6')
     22entry_sessions = ('-1','06','6')
     23
     24# students with entry_session None (-1) are interprteted as new AND returning students if they are
     25# in either of the last three states
    2326
    2427new_states =      ('admitted',
     
    4649dict['title'] = 'All Faculties'
    4750
    48 res_ft = context.students_catalog(entry_session = entry_sessions,  mode = full_time)
     51res_ft = context.students_catalog(entry_session = entry_sessions,  mode = full_time, review_state = new_states)
    4952dict['total_ft'] = len(res_ft)
    5053
    51 res_pt = context.students_catalog(entry_session = entry_sessions,  mode = part_time)
     54res_pt = context.students_catalog(entry_session = entry_sessions,  mode = part_time, review_state = new_states)
    5255dict['total_pt'] = len(res_pt)
    5356
  • WAeUP_SRP/trunk/skins/waeup_student/getRetStudentStatistics.py

    r2067 r2068  
    2020    return 'Not allowed'
    2121
    22 entry_sessions = ('94','95','96','97','98','99','00','01','02','03','04','05','0','1','2','3','4','5')
     22entry_sessions = ('-1','94','95','96','97','98','99','00','01','02','03','04','05','0','1','2','3','4','5')
    2323
    2424ret_states =      ('returning',
     
    2828                   )
    2929full_time =       ('ume_ft','de_ft','ug_ft','pg_ft')
    30 part_time =       (         'de_pt','ug_pt','pg_pt')                   
    31                    
     30part_time =       (         'de_pt','ug_pt','pg_pt')
     31
    3232faculties = context.portal_catalog(portal_type="Faculty")
    3333
     
    4141dict['title'] = 'All Faculties'
    4242
    43 res_ft = context.students_catalog(entry_session = entry_sessions,  mode = full_time)
     43res_ft = context.students_catalog(entry_session = entry_sessions,  mode = full_time, review_state = ret_states)
    4444dict['total_ft'] = len(res_ft)
    4545
    46 res_pt = context.students_catalog(entry_session = entry_sessions,  mode = part_time)
     46res_pt = context.students_catalog(entry_session = entry_sessions,  mode = part_time, review_state = ret_states)
    4747dict['total_pt'] = len(res_pt)
    4848
     
    5757    else:
    5858        dict[statepercent] = 0
    59        
     59
    6060    # part_time
    6161    res_pt = context.students_catalog(entry_session = entry_sessions, review_state = state,  mode = part_time)
     
    6666        dict[statepercent] = "%.0f" % round(dict[state_pt]*100.0/dict['total_pt'])
    6767    else:
    68         dict[statepercent] = 0       
    69        
     68        dict[statepercent] = 0
     69
    7070l.append(dict)
    7171
     
    7878    dict['total_ft'] = len(res_ft)
    7979    res_pt = context.students_catalog(entry_session = entry_sessions, faculty = f.getId, mode = part_time)
    80     dict['total_pt'] = len(res_pt)   
     80    dict['total_pt'] = len(res_pt)
    8181    for state in ret_states:
    8282        # full_time
     
    8989        else:
    9090            dict[statepercent] = 0
    91            
     91
    9292        # part_time
    9393        res_pt = context.students_catalog(entry_session = entry_sessions, faculty = f.getId, review_state = state, mode = part_time)
     
    9898            dict[statepercent] = "%.0f" % round(dict[state_pt]*100.0/dict['total_pt'])
    9999        else:
    100             dict[statepercent] = 0           
    101            
     100            dict[statepercent] = 0
     101
    102102    l.append(dict)
    103103
  • WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt

    r1762 r2068  
    1818      <nobr><a href="statistics_ret_view">Returning Student Statistics</a>
    1919      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
    20       <nobr><a href="list_students">Cleared Student Export</a>
    21       &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
    2220      <span tal:condition="is_so">
    2321         <nobr><a href="view_logs">View Log Files</a>
     
    2523         <nobr><a href="add_student">Add Student Record</a>       
    2624         &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
    27          <nobr><a href="paid_transfer_list">Export Transfer Students</a></nobr>   
     25         <nobr><a href="paid_transfer_list">Export Transfer Students</a>
     26         &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
     27         <nobr><a href="list_students">Cleared Student Export</a></nobr>             
    2828      </span>
    2929      </strong>
Note: See TracChangeset for help on using the changeset viewer.