Changeset 600 for WAeUP_SRP/trunk/skins
- Timestamp:
- 29 Sep 2006, 19:07:33 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 4 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/academics_index.py
r598 r600 22 22 campus = context.portal_catalog(meta_type = "University")[-1].getObject() 23 23 member = pm.getAuthenticatedMember() 24 roles = member.getRolesInContext(context)25 isManager = "Manager" in roles or "SectionManager" in roles26 isStudent = "Student" in roles27 isStaff = "Staff" in roles28 24 29 if isStaff or isManager:25 if context.isManager(): 30 26 if context.portal_type == 'AcademicsFolder': 31 27 return context.academics.academics_index_view() … … 43 39 return context.academics_document_view() 44 40 return redirect("%s/academics_contents" % context.absolute_url()) 45 if isStudent:41 else: 46 42 return redirect("%s/academics_contents" % context.absolute_url()) 47 43 -
WAeUP_SRP/trunk/skins/waeup_academics/faculty_index_view.pt
r598 r600 39 39 40 40 <td> 41 <<<<<<< .mine42 41 <a tal:condition="row/is_editable" 43 =======44 <a tal:condition="row/is_edit_allowed"45 >>>>>>> .r59746 42 href="edit" tal:attributes="href string:${row/url}/external_edit_form" 47 43 target="edit" -
WAeUP_SRP/trunk/skins/waeup_academics/getCertificateInfo.py
r577 r600 22 22 member_id = str(member) 23 23 roles = member.getRoles() 24 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles25 info['is_student'] = 'Student' in roles24 info['is_manager'] = context.isManager() 25 info['is_student'] = context.isStudent() 26 26 info['action'] = "%s" % context.campus.absolute_url() 27 27 info['choosen_ids'] = request.get('ids',[]) -
WAeUP_SRP/trunk/skins/waeup_academics/getCoursesCertificatesInfo.py
r554 r600 22 22 member_id = str(member) 23 23 roles = member.getRoles() 24 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles25 info['is_student'] = 'Student' in roles24 info['is_manager'] = context.isManager() 25 info['is_student'] = context.isStudent() 26 26 info['action'] = "%s/faculty_index_view" % context.absolute_url() 27 27 info['choosen_ids'] = request.get('ids',[]) -
WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py
r598 r600 24 24 dep_id = context.aq_parent.getId() 25 25 roles = member.getRoles() 26 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles27 info['is_student'] = 'Student' in roles26 info['is_manager'] = context.isManager() 27 info['is_student'] = context.isStudent() 28 28 info['action'] = "%s" % context.absolute_url() 29 29 info['choosen_ids'] = request.get('ids',[]) -
WAeUP_SRP/trunk/skins/waeup_academics/getDepartmentsInfo.py
r598 r600 22 22 member_id = str(member) 23 23 roles = member.getRolesInContext(context) 24 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles25 info['is_student'] = 'Student' in roles24 info['is_manager'] = context.isManager() 25 info['is_student'] = context.isStudent() 26 26 info['action'] = "%s" % context.absolute_url() 27 27 info['choosen_ids'] = request.get('ids',[]) -
WAeUP_SRP/trunk/skins/waeup_academics/getFacultiesInfo.py
r586 r600 22 22 member_id = str(member) 23 23 roles = member.getRoles() 24 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles25 info['is_student'] = 'Student' in roles24 info['is_manager'] = context.isManager() 25 info['is_student'] = context.isStudent() 26 26 info['action'] = "%s" % context.campus.absolute_url() 27 27 info['choosen_ids'] = request.get('ids',[]) -
WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py
r598 r600 31 31 level_id = pt[-(1+p)] 32 32 roles = member.getRoles() 33 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles34 info['is_student'] = 'Student' in roles33 info['is_manager'] = context.isManager() 34 info['is_student'] = context.isStudent() 35 35 info['action'] = "%s" % context.absolute_url() 36 36 info['choosen_ids'] = request.get('ids',[])
Note: See TracChangeset for help on using the changeset viewer.