- Timestamp:
- 20 Nov 2006, 08:08:10 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 3 added
- 1 deleted
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/academics_content_lib_info_detail_tab.pt
r486 r903 150 150 </td> 151 151 </span> 152 <td align="left" tal:define="is Manager python:checkPerm('Modify portal content', item)">153 <a tal:condition="python: display_buttons and is Manager and context.portal_type not in ('Certificate',)"152 <td align="left" tal:define="isSectionManager python:checkPerm('Modify portal content', item)"> 153 <a tal:condition="python: display_buttons and isSectionManager and context.portal_type not in ('Certificate',)" 154 154 href="dummy" tal:attributes="href string:${item/absolute_url}/cpsdocument_edit_form">[edit]</a></td> 155 155 <td align="center" tal:condition="size_in_tabs"> -
WAeUP_SRP/trunk/skins/waeup_academics/getCertificateInfo.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_academics/getCertificatesInfo.py
r845 r903 21 21 #dep_id = request.get('PATH_TRANSLATED').split('/')[-2] 22 22 dep_id = context.aq_parent.getId() 23 info['is_manager'] = context.is Manager()23 info['is_manager'] = context.isSectionManager() 24 24 info['is_student'] = context.isStudent() 25 25 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_academics/getCoursesCertificatesInfo.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/faculty_view" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py
r845 r903 21 21 #dep_id = request.get('PATH_TRANSLATED').split('/')[-2] 22 22 dep_id = context.aq_parent.getId() 23 info['is_manager'] = context.is Manager()23 info['is_manager'] = context.isSectionManager() 24 24 info['is_student'] = context.isStudent() 25 25 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_academics/getDepartmentsInfo.py
r845 r903 22 22 member_id = str(member) 23 23 roles = member.getRolesInContext(context) 24 info['is_manager'] = context.is Manager()24 info['is_manager'] = context.isSectionManager() 25 25 info['is_student'] = context.isStudent() 26 26 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_academics/getDocumentInfo.py
r845 r903 18 18 19 19 info = {} 20 info['is_manager'] = context.is Manager20 info['is_manager'] = context.isSectionManager 21 21 info['is_student'] = context.isStudent 22 22 info['doc'] = context.getContent() -
WAeUP_SRP/trunk/skins/waeup_academics/getFacultiesInfo.py
r845 r903 19 19 20 20 info = {} 21 info['is_manager'] = context.is Manager()21 info['is_manager'] = context.isSectionManager() 22 22 info['is_student'] = context.isStudent() 23 23 info['action'] = "%s" % context.campus.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py
r845 r903 28 28 cert_id = pt[-(2+p)] 29 29 level_id = pt[-(1+p)] 30 info['is_manager'] = context.is Manager()30 info['is_manager'] = context.isSectionManager() 31 31 info['is_student'] = context.isStudent() 32 32 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_academics/searchAcademics.py
r892 r903 22 22 mtool = context.portal_membership 23 23 path_info = request.get('PATH_INFO').split('/') 24 is_manager = context.is Manager24 is_manager = context.isSectionManager 25 25 validate = request.has_key("cpsdocument_edit_button") 26 26 items = [] -
WAeUP_SRP/trunk/skins/waeup_accommodation/acco_folder_index.py
r901 r903 19 19 campus = context.portal_catalog(meta_type = "University")[-1].getObject() 20 20 21 if context.is Manager():21 if context.isSectionManager(): 22 22 if context.portal_type == 'AccoFolder': 23 23 return context.accommodation.acco_folder_view() -
WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoFolderInfo.py
r845 r903 19 19 20 20 info = {} 21 info['is_manager'] = context.is Manager()21 info['is_manager'] = context.isSectionManager() 22 22 info['is_student'] = context.isStudent() 23 23 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoHallInfo.py
r845 r903 21 21 #dep_id = request.get('PATH_TRANSLATED').split('/')[-2] 22 22 dep_id = context.aq_parent.getId() 23 info['is_manager'] = context.is Manager()23 info['is_manager'] = context.isSectionManager() 24 24 info['is_student'] = context.isStudent() 25 25 info['action'] = "%s" % context.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_default/isStaff.py
r885 r903 14 14 roles = member.getRolesInContext(context) 15 15 16 return "SectionManager" in roles or\ 16 return "Manager" in roles or\ 17 "SectionManager" in roles or\ 17 18 "ClearanceOfficer" in roles or\ 18 19 "ClearanceOfficers" in member.getGroups() -
WAeUP_SRP/trunk/skins/waeup_default/waeup_edit_form.pt
r873 r903 15 15 16 16 <metal:block fill-slot="header"> 17 <span tal:condition="not: context/is Manager">17 <span tal:condition="not: context/isSectionManager"> 18 18 <metal:block use-macro="here/error_not_found/macros/not_found" /> 19 19 </span> 20 <span tal:condition="context/is Manager">20 <span tal:condition="context/isSectionManager"> 21 21 <h3 tal:condition="creation" i18n:translate=""> 22 22 Create a document of type … … 47 47 48 48 49 <metal:block fill-slot="main" tal:condition="context/is Manager">49 <metal:block fill-slot="main" tal:condition="context/isSectionManager"> 50 50 <form action="waeup_edit" method="post" id="editForm" 51 51 enctype="multipart/form-data" class="workflow" -
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.