Ignore:
Timestamp:
12 Oct 2006, 20:06:15 (18 years ago)
Author:
joachim
Message:

student-view for manager works again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r672 r674  
    6666              'StudentPersonal': '',
    6767              }
     68s_view_links = {'StudentApplication': 'application_view',
     69              'StudentAccommodation': 'accommodation_view',
     70              'StudentPersonal': 'personal_view',
     71              }
    6872sos = context.portal_catalog(container_path=student_path)
    6973for so in sos:
     
    7680    row['type'] = so.portal_type
    7781    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)
    7990    row['review_state'] = so.review_state
    8091    row['display'] = so.review_state in ('opened','closed')
Note: See TracChangeset for help on using the changeset viewer.