Changeset 723 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 19 Oct 2006, 17:06:51 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r674 r723 21 21 roles = member.getRoles() 22 22 info = {} 23 info['is_manager'] = context.isManager 23 info['is_manager'] = context.isManager() 24 24 info['is_student'] = context.isStudent() 25 25 member_id = str(member) … … 66 66 'StudentPersonal': '', 67 67 } 68 s_view_links = {'StudentApplication': 'application_view', 69 'StudentAccommodation': 'accommodation_view', 70 'StudentPersonal': 'personal_view', 68 s_view_links = {'StudentApplication': None, 69 'StudentAccommodation': None, 70 'StudentPersonal': None, 71 'StudentStudyCourse': 'study_course_view', 71 72 } 72 73 sos = context.portal_catalog(container_path=student_path) … … 80 81 row['type'] = so.portal_type 81 82 row['is_editable'] = mtool.checkPermission('Modify portal content', soo) 82 sv_link = s_view_links.get(so.portal_type,None) 83 row['s_view_link'] = None 84 if sv_link: 85 row['s_view_link'] = "%s/%s" % (student.absolute_url(),sv_link) 83 sv_link = s_view_links.get(so.portal_type,None) or "academics_document_view" 84 row['s_view_link'] = "%s/%s" % (soo.absolute_url(),sv_link) 86 85 se_link = s_edit_links.get(so.portal_type,None) 87 86 row['s_edit_link'] = None -
WAeUP_SRP/trunk/skins/waeup_student/student_index.py
r681 r723 20 20 return redirect("%s/srp_anonymous_view" % context.absolute_url()) 21 21 if context.isManager(): 22 if context.portal_type == 'StudentStudyCourse': 23 return context.study_course_view() 24 elif context.portal_type == 'StudentStudyLevel': 25 return context.study_level_view() 22 26 return redirect("%s/student_view" % context.absolute_url()) 23 27 if context.isStudent(): -
WAeUP_SRP/trunk/skins/waeup_student/student_view.pt
r674 r723 23 23 <tr tal:repeat="row rows" 24 24 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 25 <td><a href="view" tal:attributes="href string:${row/ url}/academics_document_view">25 <td><a href="view" tal:attributes="href string:${row/s_view_link}"> 26 26 <strong tal:content="row/title" /></a> </td> 27 27 <td>
Note: See TracChangeset for help on using the changeset viewer.