Changeset 903 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 20 Nov 2006, 08:08:10 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt
r895 r903 2 2 <tal:block define=" 3 3 info context/getStudentInfo; 4 is Manager context/isManager;4 isSectionManager context/isSectionManager; 5 5 isStaff context/isStaff; 6 6 isClearanceOfficer context/isClearanceOfficer; … … 8 8 review_state info/review_state; 9 9 clear_review_state info/clear_review_state; 10 editable python: (isStudent and clear_review_state == 'opened' or is Manager) and not isClearanceOfficer;10 editable python: (isStudent and clear_review_state == 'opened' or isSectionManager) and not isClearanceOfficer; 11 11 mode python: test(editable,'edit','view'); 12 12 rendered_main python:info['clear_doc'].render(request=request, -
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_lib.pt
r895 r903 4 4 <metal:block define-macro="header"> 5 5 <!-- Administration --> 6 <tal:block condition="python: not(isStaff or is Manager or isStudent)">6 <tal:block condition="python: not(isStaff or isSectionManager or isStudent)"> 7 7 <metal:block use-macro="here/error_not_found/macros/not_found" /> 8 8 </tal:block> 9 <tal:block condition="python: isStaff or is Manager">9 <tal:block condition="python: isStaff or isSectionManager"> 10 10 <a href="" tal:condition="python: 0" 11 11 tal:attributes="href string:${here/academicsParent}"> … … 34 34 <!-- buttons --> 35 35 <metal:block define-macro="buttons"> 36 <!-- is Manager -->37 <tal:block condition="context/is Manager">36 <!-- isSectionManager --> 37 <tal:block condition="context/isSectionManager"> 38 38 39 39 <div tal:condition="python:info['review_state'] == 'clearance_pin_entered'"> -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r894 r903 21 21 22 22 info = {} 23 info['is_manager'] = context.is Manager()23 info['is_manager'] = context.isSectionManager() 24 24 info['is_student'] = context.isStudent() 25 25 info['is_co'] = context.isClearanceOfficer() -
WAeUP_SRP/trunk/skins/waeup_student/getStudyCourseInfo.py
r845 r903 18 18 19 19 info = {} 20 info['is_manager'] = context.is Manager()20 info['is_manager'] = context.isSectionManager() 21 21 info['is_student'] = context.isStudent() 22 22 info['action'] = "%s" % context.campus.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_student/getStudyLevelInfo.py
r845 r903 44 44 student_id = pt[-(3+p)] 45 45 level_id = pt[-(1+p)] 46 info['is_manager'] = context.is Manager()46 info['is_manager'] = context.isSectionManager() 47 47 info['is_student'] = context.isStudent() 48 48 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py
r896 r903 49 49 pr = context.portal_registration 50 50 path_info = request.get('PATH_INFO').split('/') 51 is_manager = context.is Manager()51 is_manager = context.isSectionManager() 52 52 validate = request.has_key("cpsdocument_edit_button") 53 53 default = {'search_mode': 'name', -
WAeUP_SRP/trunk/skins/waeup_student/student_index.py
r894 r903 17 17 pm = context.portal_membership 18 18 19 if pm.isAnonymousUser(): 20 return redirect("%s/srp_anonymous_view" % context.absolute_url()) 21 if context.isManager() or context.isStaff: 19 if context.isStaff(): 22 20 if context.portal_type == 'StudentStudyCourse': 23 21 return context.study_course_view() … … 33 31 student = info['student'] 34 32 return redirect("%s/student_view" % student.absolute_url()) 33 34 return redirect("%s/srp_anonymous_view" % context.absolute_url()) 35 -
WAeUP_SRP/trunk/skins/waeup_student/students_index.py
r886 r903 25 25 if "ClearanceOfficers" in member.getGroups(): 26 26 return redirect("%s/searchStudents" % students_url) 27 if context.is Manager():27 if context.isSectionManager(): 28 28 return redirect("%s/searchStudents" % students_url) 29 29 if context.isStudent():
Note: See TracChangeset for help on using the changeset viewer.