Changeset 646


Ignore:
Timestamp:
10 Oct 2006, 18:05:39 (18 years ago)
Author:
joachim
Message:

fixed getStudentInfo a little bit more

File:
1 edited

Legend:

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

    r645 r646  
    2424member_id = str(member)
    2525if student is None:
    26     student_id = member_id
     26    if context.isManager:
     27        if context.portal_type == 'Student':
     28            student_id = context.getId()
     29        else:
     30            student_id = context.aq_parent.getId()
     31    else:
     32        student_id = member_id
    2733else:
    2834    student_id = student.getId()
Note: See TracChangeset for help on using the changeset viewer.