Changeset 2431 for WAeUP_SRP/base
- Timestamp:
- 25 Oct 2007, 13:17:45 (17 years ago)
- Location:
- WAeUP_SRP/base/skins
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_statistics/getNewStudentStatistics.py
r2243 r2431 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 22 entry_sessions = ('-1','06','6') 23 23 24 # students with entry_session None (-1) are interprteted as new AND returning students if they are 24 # students with entry_session None (-1) are interprteted as new AND returning students if they are 25 25 # in either of the last three states 26 26 … … 65 65 else: 66 66 dict[statepercent] = 0 67 67 68 68 # part_time 69 69 res_pt = context.students_catalog(entry_session = entry_sessions, review_state = state, mode = part_time) … … 74 74 dict[statepercent] = "%.0f" % round(dict[state_pt]*100.0/dict['total_pt']) 75 75 else: 76 dict[statepercent] = 0 77 76 dict[statepercent] = 0 77 78 78 l.append(dict) 79 79 … … 86 86 dict['total_ft'] = len(res_ft) 87 87 res_pt = context.students_catalog(entry_session = entry_sessions, faculty = f.getId, mode = part_time) 88 dict['total_pt'] = len(res_pt) 88 dict['total_pt'] = len(res_pt) 89 89 for state in new_states: 90 90 # full_time … … 97 97 else: 98 98 dict[statepercent] = 0 99 99 100 100 # part_time 101 101 res_pt = context.students_catalog(entry_session = entry_sessions, faculty = f.getId, review_state = state, mode = part_time) … … 106 106 dict[statepercent] = "%.0f" % round(dict[state_pt]*100.0/dict['total_pt']) 107 107 else: 108 dict[statepercent] = 0 109 108 dict[statepercent] = 0 109 110 110 l.append(dict) 111 111 -
WAeUP_SRP/base/skins/waeup_statistics/getRetStudentStatistics.py
r2243 r2431 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 22 entry_sessions = ('-1','94','95','96','97','98','99','00','01','02','03','04','05','0','1','2','3','4','5') -
WAeUP_SRP/base/skins/waeup_statistics/getSimpleStudentStatistics.py
r2243 r2431 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 22 #entry_sessions = ('-1','94','95','96','97','98','99','00','01','02','03','04','05','0','1','2','3','4','5') -
WAeUP_SRP/base/skins/waeup_student/search_students.py
r2280 r2431 29 29 30 30 allowed = True 31 if is_anon :31 if is_anon or context.isStudent(): 32 32 allowed = False 33 33 from Products.AdvancedQuery import Eq, Between, Le,In
Note: See TracChangeset for help on using the changeset viewer.