- Timestamp:
- 27 Jul 2007, 21:15:28 (17 years ago)
- File:
-
- 1 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
Note: See TracChangeset for help on using the changeset viewer.