Changeset 2724 for WAeUP_SRP/fceokene/waeup_custom
- Timestamp:
- 21 Nov 2007, 07:20:00 (17 years ago)
- Location:
- WAeUP_SRP/fceokene/waeup_custom
- Files:
-
- 5 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/fceokene/waeup_custom/apply_admission_manage_form.pt
r2548 r2724 20 20 <table tal:define="info_applicants context/getApplicantsStatistics"> 21 21 <tr> 22 <td>PCE Applica tions - submitted:</td>22 <td>PCE Applicants (status submitted):</td> 23 23 <td><span tal:replace="info_applicants/submitted_pce" /></td> 24 24 </tr> 25 25 <tr> 26 <td>Pre-NCE Applica tions - submitted:</td>27 <td><span tal:replace="info_applicants/ admitted_prence" /></td>26 <td>Pre-NCE Applicants (status submitted):</td> 27 <td><span tal:replace="info_applicants/submitted_prence" /></td> 28 28 </tr> 29 <tr> 30 <td>All Applicants (status admitted):</td> 31 <td><span tal:replace="info_applicants/admitted" /></td> 32 </tr> 33 <tr> 34 <td>All Applicants (status student record created):</td> 35 <td><span tal:replace="info_applicants/created" /></td> 36 </tr> 37 <tr> 38 <td>All Applicants (status not admitted):</td> 39 <td><span tal:replace="info_applicants/not_admitted" /></td> 40 </tr> 29 41 </table> 30 42 … … 55 67 56 68 57 58 59 60 69 <input type="submit" class="standalone" 61 70 name="edit" 62 71 value="Save" 63 72 /> 64 65 66 67 68 73 69 74 <br /><br /> -
WAeUP_SRP/fceokene/waeup_custom/getApplicantsStatistics.py
r2548 r2724 22 22 23 23 info = {} 24 25 24 res_submitted_pce = context.applicants_catalog(status = 'submitted', screening_type = 'pce') 26 res_admitted_prence = context.applicants_catalog(status = 'submitted', screening_type = 'prence') 25 res_not_admitted = context.applicants_catalog(status = 'not admitted') 26 res_submitted_prence = context.applicants_catalog(status = 'submitted', screening_type = 'prence') 27 res_admitted = context.applicants_catalog(status = 'admitted') 28 res_created = context.applicants_catalog(status = 'created') 27 29 28 30 info['submitted_pce'] = len(res_submitted_pce) 29 info['admitted_prence'] = len(res_admitted_prence) 31 info['admitted'] = len(res_admitted) 32 info['not_admitted'] = len(res_not_admitted) 33 info['submitted_prence'] = len(res_submitted_prence) 34 info['created'] = len(res_created) 30 35 31 36 return info … … 33 38 34 39 35 -
WAeUP_SRP/fceokene/waeup_custom/getSimpleStudentStatistics.py
r2362 r2724 18 18 logger.info('%s invoked statistics' % context.portal_membership.getAuthenticatedMember()) 19 19 if not context.isStaff(): 20 return 'Not allowed'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', … … 39 39 ) 40 40 41 current_session = context.getSessionId()[0] 41 42 42 full_time = ('ume_ft','de_ft','ug_ft','pg_ft') 43 part_time = ( 'de_pt','ug_pt','pg_pt') 44 diploma = ('dp_ft','dp_pt') 43 44 full_time = ('ume_ft','') 45 part_time = () 46 diploma = () 45 47 46 48 … … 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 85 res_Cft = context.students_catalog(review_state = catC, mode = full_time )87 res_Cft = context.students_catalog(review_state = catC, mode = full_time, session = current_session) 86 88 dict['total_Cft'] = len(res_Cft) 87 89 88 res_Cpt = context.students_catalog(review_state = catC, mode = part_time )90 res_Cpt = context.students_catalog(review_state = catC, mode = part_time, session = current_session) 89 91 dict['total_Cpt'] = len(res_Cpt) 90 92 91 res_Cdp = context.students_catalog(review_state = catC, mode = diploma )93 res_Cdp = context.students_catalog(review_state = catC, mode = diploma, session = current_session) 92 94 dict['total_Cdp'] = len(res_Cdp) 93 95 … … 95 97 res_total = context.students_catalog() 96 98 dict['total_in_catalog'] = len(res_total) 97 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']99 dict['not_categorized'] = dict['total_in_catalog'] - dict['total_ft'] - dict['total_pt'] - dict['total_dp'] 98 100 99 101 l.append(dict) … … 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 134 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) 135 137 dict['total_Cft'] = len(res_Cft) 136 138 137 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) 138 140 dict['total_Cpt'] = len(res_Cpt) 139 141 140 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) 141 143 dict['total_Cdp'] = len(res_Cdp) 142 144
Note: See TracChangeset for help on using the changeset viewer.