Ignore:
Timestamp:
21 Oct 2006, 10:52:05 (18 years ago)
Author:
Henrik Bettermann
Message:

academics_document_view.pt with student's name in title

File:
1 edited

Legend:

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

    r723 r735  
    2828        if context.portal_type == 'Student':
    2929            student_id = context.getId()
     30        elif context.aq_parent.portal_type == 'Student':
     31            student_id = context.aq_parent.getId()
     32        elif context.aq_parent.aq_parent.portal_type == 'Student':
     33            student_id = context.aq_parent.aq_parent.getId()   
     34        elif context.aq_parent.aq_parent.aq_parent.portal_type == 'Student':
     35            student_id = context.aq_parent.aq_parent.aq_parent.getId()   
    3036        else:
    31             student_id = context.aq_parent.getId()
     37            student_id = member_id           
    3238    else:
    3339        student_id = member_id
Note: See TracChangeset for help on using the changeset viewer.