Changeset 2070
- Timestamp:
- 27 Jul 2007, 21:15:28 (17 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getSimpleStudentStatistics.py
r2068 r2070 14 14 15 15 import logging 16 logger = logging.getLogger('Skins.get RetStudentStatistics')16 logger = logging.getLogger('Skins.getSimpleStudentStatistics') 17 17 18 18 logger.info('%s invoked statistics' % context.portal_membership.getAuthenticatedMember()) … … 30 30 'courses_validated', 31 31 ) 32 32 33 33 catC = ('admitted', 34 34 'clearance_pin_entered', … … 36 36 'clearance_requested', 37 37 'cleared_and_validated', 38 ) 38 ) 39 39 40 40 41 41 full_time = ('ume_ft','de_ft','ug_ft','pg_ft') 42 part_time = ( 'de_pt','ug_pt','pg_pt') 42 part_time = ( 'de_pt','ug_pt','pg_pt') 43 43 diploma = ('dp_ft','dp_pt') 44 45 44 45 46 46 faculties = context.portal_catalog(portal_type="Faculty") 47 47 … … 79 79 80 80 res_Cdp = context.students_catalog(review_state = catC, mode = diploma) 81 dict['total_Cdp'] = len(res_Cdp) 81 dict['total_Cdp'] = len(res_Cdp) 82 82 83 83 84 res_total = context.students_catalog() 85 dict['total_in_catalog'] = len(res_total) 86 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'] 87 84 88 l.append(dict) 85 89 … … 91 95 res_Aft = context.students_catalog(faculty = f.getId, review_state = catA, mode = full_time) 92 96 dict['total_Aft'] = len(res_Aft) 93 97 94 98 res_Apt = context.students_catalog(faculty = f.getId, review_state = catA, mode = part_time) 95 99 dict['total_Apt'] = len(res_Apt) … … 114 118 115 119 res_Cdp = context.students_catalog(faculty = f.getId, review_state = catC, mode = diploma) 116 dict['total_Cdp'] = len(res_Cdp) 117 118 120 dict['total_Cdp'] = len(res_Cdp) 121 122 119 123 l.append(dict) 120 124 -
WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt
r2068 r2070 18 18 <nobr><a href="statistics_ret_view">Returning Student Statistics</a> 19 19 </nobr> 20 <nobr><a href="statistics_simple_view">Basic Student Statistics</a> 21 </nobr> 20 22 <span tal:condition="is_so"> 21 23 <nobr><a href="view_logs">View Log Files</a> -
WAeUP_SRP/trunk/skins/waeup_student/statistics_simple_view.pt
r2068 r2070 15 15 <nobr><a href="statistics_new_view">New Student Statistics</a> 16 16 </nobr> 17 <nobr><a href="statistics_ret_view">Returning Student Statistics</a> 18 </nobr> 17 19 </strong> 18 20 … … 20 22 <br /> 21 23 <span tal:condition="not:isAnon"> 22 23 24 24 Student records imported: <span tal:content="python: faculties[0]['total_in_catalog']" /> 25 <br /> <br /> 25 26 <table > 26 27 … … 94 95 </table> 95 96 96 97 98 97 <br /> 99 <table >98 <table border=0> 100 99 101 <tr><td>Category A: </td> <td>students who have paid their school fee</td></tr> 102 <tr><td>Category B: </td> <td>students who registered their courses online</td></tr> 103 <tr><td>Category C: </td> <td>students who have neither paid their school fee or registered their courses online</td></tr> 100 <tr><td>Category A: </td> <td>students who paid their school fee</td></tr> 101 <tr><td>Category B: </td> <td>students who registered their courses online (A contains B)</td></tr> 102 <tr><td>Category C: </td> <td>students who who have not yet paid their school fee</td></tr> 103 <tr><td> </td><td> </td></tr> 104 <tr><td colspan="2"><strong>Notice:</strong> Category C is not complete. 105 <span tal:content="python: faculties[0]['not_categorized']" /> returning full-time students have not yet logged in and are thus not categorized. 106 </td> 107 </tr> 104 108 105 109 </table> 110 111 112 106 113 </span> 107 114 </span>
Note: See TracChangeset for help on using the changeset viewer.