- Timestamp:
- 25 Oct 2007, 13:17:45 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 5 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 -
WAeUP_SRP/uniben/profiles/default/rolemap.xml
r1512 r2431 10 10 </roles> 11 11 <permissions> 12 <permission name=" List folder contents" acquire="True">13 <role name="SectionManager"/>14 <role name=" SectionReader"/>15 <role name=" SectionOfficer"/>12 <permission name="Access future portal content" 13 acquire="True"> 14 <role name="Manager"/> 15 <role name="Authenticated"/> 16 16 </permission> 17 <permission name=" View" acquire="True">18 <role name="SectionManager"/>19 <role name=" SectionReader"/>20 <role name=" SectionOfficer"/>17 <permission name="Access inactive portal content" 18 acquire="True"> 19 <role name="Manager"/> 20 <role name="Authenticated"/> 21 21 </permission> 22 22 <permission name="Add portal content" acquire="True"> … … 28 28 <role name="SectionOfficer"/> 29 29 </permission> 30 <permission name="Add portal member" acquire="True"> 31 <role name="SectionManager"/> 32 <role name="SectionOfficer"/> 33 </permission> 34 <permission name="Change subobjects order" 35 acquire="True"> 36 <role name="SectionManager"/> 37 <role name="SectionOfficer"/> 38 </permission> 30 39 <permission name="Delete objects" acquire="True"> 31 40 <role name="SectionManager"/> 32 41 <role name="SectionOfficer"/> 33 42 </permission> 34 <permission name="Change subobjects order" acquire="True"> 43 <permission name="FTP access" acquire="True"> 44 <role name="Manager"/> 45 </permission> 46 <permission name="List folder contents" acquire="True"> 35 47 <role name="SectionManager"/> 36 48 <role name="SectionOfficer"/> 37 </permission> 38 <permission name="Manage properties" acquire="True"> 39 <role name="SectionManager"/> 40 <role name="SectionOfficer"/> 49 <role name="SectionReader"/> 41 50 </permission> 42 51 <permission name="List portal members" acquire="True"> … … 44 53 <role name="SectionOfficer"/> 45 54 </permission> 46 <permission name="Add portal member" acquire="True"> 47 <role name="SectionManager"/> 48 <role name="SectionOfficer"/> 55 <permission name="List undoable changes" acquire="False"> 56 <role name="Manager"/> 49 57 </permission> 50 <permission name="Review portal content" acquire="True"> 51 <role name="Owner"/> 52 <role name="Reviewer"/> 58 <permission name="Manage Portlets" acquire="False"> 59 <role name="Manager"/> 60 </permission> 61 <permission name="Manage properties" acquire="True"> 53 62 <role name="SectionManager"/> 54 63 <role name="SectionOfficer"/> … … 58 67 <role name="SectionOfficer"/> 59 68 </permission> 69 <permission name="Reply to item" acquire="True"> 70 <role name="Manager"/> 71 <role name="Member"/> 72 </permission> 73 <permission name="Review portal content" acquire="True"> 74 <role name="Reviewer"/> 75 <role name="SectionManager"/> 76 <role name="SectionOfficer"/> 77 </permission> 60 78 <permission name="Set own password" acquire="True"> 79 <role name="Member"/> 80 </permission> 81 <permission name="Set own properties" acquire="True"> 82 <role name="Manager"/> 61 83 <role name="Member"/> 62 84 </permission> … … 64 86 <role name="SectionManager"/> 65 87 </permission> 88 <permission name="Use external editor" acquire="False"> 89 <role name="Manager"/> 90 <role name="Member"/> 91 </permission> 66 92 <permission name="Use mailhost services" acquire="True"> 93 <role name="Anonymous"/> 67 94 <role name="Authenticated"/> 68 <role name="Anonymous"/> 95 </permission> 96 <permission name="View" acquire="True"> 97 <role name="SectionManager"/> 98 <role name="SectionOfficer"/> 99 <role name="SectionReader"/> 100 </permission> 101 <permission name="View management screens" 102 acquire="True"> 103 <role name="Manager"/> 69 104 </permission> 70 105 </permissions>
Note: See TracChangeset for help on using the changeset viewer.