- Timestamp:
- 16 Nov 2006, 13:05:12 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/actions.xml
r849 r874 119 119 </action> 120 120 <action title="Students" action_id="view_students" category="navigation" 121 condition_expr=" member" url_expr="string:${portal_url}/campus/students"122 visible="True"> 123 <permission> Modify portal content</permission>121 condition_expr="here/isStaff" url_expr="string:${portal_url}/campus/students" 122 visible="True"> 123 <permission>View</permission> 124 124 </action> 125 125 <action title="PINs" action_id="view_pins" category="navigation" -
WAeUP_SRP/trunk/profiles/default/layouts/student_search.xml
r853 r874 17 17 <property name="hidden_layout_modes"/> 18 18 <property name="hidden_readonly_layout_modes"/> 19 <property name="vocabulary"> searchable_student_states</property>19 <property name="vocabulary">get_searchable_student_states</property> 20 20 </widget> 21 21 <widget name="search_mode" meta_type="Generic Select Widget"> -
WAeUP_SRP/trunk/profiles/default/vocabularies.xml
r841 r874 22 22 <object name="student_status_voc" meta_type="CPS Vocabulary"/> 23 23 <object name="searchable_student_states" meta_type="CPS Vocabulary"/> 24 <object name="get_searchable_student_states" meta_type="CPS Method Vocabulary"/> 24 25 <object name="academics_search_mode" meta_type="CPS Vocabulary"/> 25 26 <object name="searchable_academics_states" meta_type="CPS Vocabulary"/> -
WAeUP_SRP/trunk/skins/waeup_default/isManager.py
r844 r874 14 14 15 15 """ 16 request = context.REQUEST 17 18 wf = context.portal_workflow 19 mtool = context.portal_membership 20 member = mtool.getAuthenticatedMember() 21 path_info = request.get('PATH_INFO').split('/') 22 #roles = member.getRolesInContext(context) 23 roles = member.getRoles() 24 isStudent = "Student" in roles 25 isStaff = not isStudent and not mtool.isAnonymousUser() 26 #isManager = "Manager" in roles or "SectionManager" in roles or isStaff 27 isManager = isStaff 28 return isManager 16 return context.isStaff() -
WAeUP_SRP/trunk/skins/waeup_default/isStudent.py
r845 r874 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters= student=None7 ##parameters= 8 8 ##title= 9 9 ## … … 12 12 return True if the member is considered a Student 13 13 """ 14 request = context.REQUEST 15 16 wf = context.portal_workflow 17 mtool = context.portal_membership 18 member = mtool.getAuthenticatedMember() 19 path_info = request.get('PATH_INFO').split('/') 20 #roles = member.getRolesInContext(context) 21 roles = member.getRoles() # Student role is global 22 isStudent = "Student" in roles 23 return isStudent 14 roles = context.portal_membership.getAuthenticatedMember().getRolesInContext(context) 15 return "Student" in roles -
WAeUP_SRP/trunk/skins/waeup_student/students_index.py
r832 r874 15 15 request = context.REQUEST 16 16 redirect = request.RESPONSE.redirect 17 pm = context.portal_membership 17 mtool = context.portal_membership 18 member = mtool.getAuthenticatedMember() 18 19 19 if pm.isAnonymousUser():20 if mtool.isAnonymousUser(): 20 21 return redirect("%s/srp_anonymous_view" % context.portal_url()) 21 22 22 23 students_url = "%s/campus/students" % (context.portal_url.getPortalPath()) 23 24 25 if "ClearanceOfficers" in member.getGroups(): 26 return redirect("%s/co_search" % students_url) 24 27 if context.isManager(): 25 28 return redirect("%s/searchStudents" % students_url)
Note: See TracChangeset for help on using the changeset viewer.