Changeset 2705 for WAeUP_SRP/base
- Timestamp:
- 18 Nov 2007, 20:42:56 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_statistics
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_statistics/getNewStudentStatistics.py
r2660 r2705 25 25 # in either of the last three states 26 26 27 new_states = ('admitted', 27 new_states = ('student_created', 28 'admitted', 28 29 'clearance_pin_entered', 29 30 'objection_raised', -
WAeUP_SRP/base/skins/waeup_statistics/getRetStudentStatistics.py
r2660 r2705 21 21 22 22 entry_sessions = ('','-1','94','95','96','97','98','99','00','01','02','03','04','05','06','0','1','2','3','4','5','6') 23 24 current_session = context.getSessionId()[0] 23 25 24 26 ret_states = ('returning', … … 49 51 for state in ret_states: 50 52 # full_time 51 res_ft = context.students_catalog(entry_session = entry_sessions, review_state = state, mode = full_time )53 res_ft = context.students_catalog(entry_session = entry_sessions, review_state = state, mode = full_time, session = current_session) 52 54 state_ft = state + '_ft' 53 55 dict[state_ft] = len(res_ft) … … 59 61 60 62 # part_time 61 res_pt = context.students_catalog(entry_session = entry_sessions, review_state = state, mode = part_time )63 res_pt = context.students_catalog(entry_session = entry_sessions, review_state = state, mode = part_time, session = current_session) 62 64 state_pt = state + '_pt' 63 65 dict[state_pt] = len(res_pt) … … 81 83 for state in ret_states: 82 84 # full_time 83 res_ft = context.students_catalog(entry_session = entry_sessions, faculty = f.getId, review_state = state, mode = full_time )85 res_ft = context.students_catalog(entry_session = entry_sessions, faculty = f.getId, review_state = state, mode = full_time, session = current_session) 84 86 state_ft = state + '_ft' 85 87 dict[state_ft] = len(res_ft) … … 91 93 92 94 # part_time 93 res_pt = context.students_catalog(entry_session = entry_sessions, faculty = f.getId, review_state = state, mode = part_time )95 res_pt = context.students_catalog(entry_session = entry_sessions, faculty = f.getId, review_state = state, mode = part_time, session = current_session) 94 96 state_pt = state + '_pt' 95 97 dict[state_pt] = len(res_pt) -
WAeUP_SRP/base/skins/waeup_statistics/getSimpleStudentStatistics.py
r2431 r2705 20 20 return 21 21 22 #entry_sessions = ('-1','94','95','96','97','98','99','00','01','02','03','04','05','0','1','2','3','4','5')23 22 24 23 catA = ( 'school_fee_paid', … … 31 30 ) 32 31 33 catC = ( 'returning', 32 catC = ( 'student_created', 33 'returning', 34 34 'admitted', 35 35 'clearance_pin_entered', … … 38 38 'cleared_and_validated', 39 39 ) 40 41 current_session = context.getSessionId()[0] 40 42 41 43 … … 65 67 dict['total_dp'] = len(res_dp) 66 68 67 res_Aft = context.students_catalog(review_state = catA, mode = full_time )69 res_Aft = context.students_catalog(review_state = catA, mode = full_time, session = current_session) 68 70 dict['total_Aft'] = len(res_Aft) 69 71 70 res_Apt = context.students_catalog(review_state = catA, mode = part_time )72 res_Apt = context.students_catalog(review_state = catA, mode = part_time, session = current_session) 71 73 dict['total_Apt'] = len(res_Apt) 72 74 73 res_Adp = context.students_catalog(review_state = catA, mode = diploma )75 res_Adp = context.students_catalog(review_state = catA, mode = diploma, session = current_session) 74 76 dict['total_Adp'] = len(res_Adp) 75 77 76 res_Bft = context.students_catalog(review_state = catB, mode = full_time )78 res_Bft = context.students_catalog(review_state = catB, mode = full_time, session = current_session) 77 79 dict['total_Bft'] = len(res_Bft) 78 80 79 res_Bpt = context.students_catalog(review_state = catB, mode = part_time )81 res_Bpt = context.students_catalog(review_state = catB, mode = part_time, session = current_session) 80 82 dict['total_Bpt'] = len(res_Bpt) 81 83 82 res_Bdp = context.students_catalog(review_state = catB, mode = diploma )84 res_Bdp = context.students_catalog(review_state = catB, mode = diploma, session = current_session) 83 85 dict['total_Bdp'] = len(res_Bpt) 84 86 … … 114 116 dict['total_dp'] = len(res_dp) 115 117 116 res_Aft = context.students_catalog(faculty = f.getId, review_state = catA, mode = full_time )118 res_Aft = context.students_catalog(faculty = f.getId, review_state = catA, mode = full_time, session = current_session) 117 119 dict['total_Aft'] = len(res_Aft) 118 120 119 res_Apt = context.students_catalog(faculty = f.getId, review_state = catA, mode = part_time )121 res_Apt = context.students_catalog(faculty = f.getId, review_state = catA, mode = part_time, session = current_session) 120 122 dict['total_Apt'] = len(res_Apt) 121 123 122 res_Adp = context.students_catalog(faculty = f.getId, review_state = catA, mode = diploma )124 res_Adp = context.students_catalog(faculty = f.getId, review_state = catA, mode = diploma, session = current_session) 123 125 dict['total_Adp'] = len(res_Adp) 124 126 125 res_Bft = context.students_catalog(faculty = f.getId, review_state = catB, mode = full_time )127 res_Bft = context.students_catalog(faculty = f.getId, review_state = catB, mode = full_time, session = current_session) 126 128 dict['total_Bft'] = len(res_Bft) 127 129 128 res_Bpt = context.students_catalog(faculty = f.getId, review_state = catB, mode = part_time )130 res_Bpt = context.students_catalog(faculty = f.getId, review_state = catB, mode = part_time, session = current_session) 129 131 dict['total_Bpt'] = len(res_Bpt) 130 132 131 res_Bdp = context.students_catalog(faculty = f.getId, review_state = catB, mode = diploma )133 res_Bdp = context.students_catalog(faculty = f.getId, review_state = catB, mode = diploma, session = current_session) 132 134 dict['total_Bdp'] = len(res_Bpt) 133 135 -
WAeUP_SRP/base/skins/waeup_statistics/statistics_new_view.pt
r2243 r2705 3 3 <metal:block tal:define="faculties context/getNewStudentStatistics; 4 4 mtool here/portal_membership; 5 member mtool/getAuthenticatedMember;"> 5 member mtool/getAuthenticatedMember; 6 session_str python:context.getSessionId()[1];"> 6 7 7 8 <span tal:condition="not: faculties"> … … 17 18 </strong> 18 19 19 <h3>New Student Statistics </h3>20 <h3>New Student Statistics <span tal:content="session_str" /></h3> 20 21 <br /> 21 22 <span tal:condition="not:isAnon"> -
WAeUP_SRP/base/skins/waeup_statistics/statistics_ret_view.pt
r2243 r2705 3 3 <metal:block tal:define="faculties context/getRetStudentStatistics; 4 4 mtool here/portal_membership; 5 member mtool/getAuthenticatedMember;"> 5 member mtool/getAuthenticatedMember; 6 session_str python:context.getSessionId()[1];"> 6 7 7 8 <span tal:condition="not: faculties"> … … 17 18 </strong> 18 19 19 <h3>Returning Student Statistics </h3>20 <h3>Returning Student Statistics <span tal:content="session_str" /></h3> 20 21 <br /> 21 22 <span tal:condition="not:isAnon"> … … 40 41 <span tal:content="d/total_ft" /> 41 42 </td> 43 42 44 <td width="80px" align="right"> 43 45 <span tal:content="d/returning_ft" /> … … 79 81 <span tal:content="d/total_pt" /> 80 82 </td> 83 81 84 <td width="80px" align="right"> 82 85 <span tal:content="d/returning_pt" /> -
WAeUP_SRP/base/skins/waeup_statistics/statistics_simple_view.pt
r2243 r2705 3 3 <metal:block tal:define="faculties context/getSimpleStudentStatistics; 4 4 mtool here/portal_membership; 5 member mtool/getAuthenticatedMember;"> 5 member mtool/getAuthenticatedMember; 6 session_str python:context.getSessionId()[1]"> 6 7 7 8 <span tal:condition="not: faculties"> … … 19 20 </strong> 20 21 21 <h3>Basic Student Statistics </h3>22 <h3>Basic Student Statistics <span tal:content="session_str" /></h3> 22 23 <br /> 23 24 <span tal:condition="not:isAnon"> … … 116 117 <table border=0> 117 118 118 <tr><td>Category A: </td> <td>students who paid their school fee </td></tr>119 <tr><td>Category B: </td> <td>students who registered their courses online (A contains B) </td></tr>120 <tr><td>Category C: </td> <td>students who have not yet paid their school fee </td></tr>119 <tr><td>Category A: </td> <td>students who paid their school fee in <span tal:content="session_str" /></td></tr> 120 <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 122 <tr><td> </td><td> </td></tr> 122 <tr><td colspan="2"><strong>Notice:</strong> Category C is not complete. 123 <span tal:content="python: faculties[0]['not_categorized']" /> returning full-time students have not yet logged in and are thus not categorized. 123 <tr><td colspan="2"> 124 124 </td> 125 125 </tr>
Note: See TracChangeset for help on using the changeset viewer.