Changeset 674 for WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
- Timestamp:
- 12 Oct 2006, 20:06:15 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r672 r674 66 66 'StudentPersonal': '', 67 67 } 68 s_view_links = {'StudentApplication': 'application_view', 69 'StudentAccommodation': 'accommodation_view', 70 'StudentPersonal': 'personal_view', 71 } 68 72 sos = context.portal_catalog(container_path=student_path) 69 73 for so in sos: … … 76 80 row['type'] = so.portal_type 77 81 row['is_editable'] = mtool.checkPermission('Modify portal content', soo) 78 row['s_edit_link'] = "%s/%s" % (student.absolute_url(),s_edit_links[so.portal_type]) 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) 86 se_link = s_edit_links.get(so.portal_type,None) 87 row['s_edit_link'] = None 88 if se_link: 89 row['s_edit_link'] = "%s/%s" % (student.absolute_url(),se_link) 79 90 row['review_state'] = so.review_state 80 91 row['display'] = so.review_state in ('opened','closed')
Note: See TracChangeset for help on using the changeset viewer.