Ignore:
Timestamp:
10 Oct 2006, 17:55:35 (18 years ago)
Author:
joachim
Message:

fixed getStudentInfo

File:
1 edited

Legend:

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

    r639 r645  
    2323info['is_manager'] = context.isManager
    2424member_id = str(member)
    25 res = context.portal_catalog(portal_type='Student',id=member_id)
     25if student is None:
     26    student_id = member_id
     27else:
     28    student_id = student.getId()
     29res = context.portal_catalog(portal_type='Student',id=student_id)
    2630if not res:
    2731    return None
Note: See TracChangeset for help on using the changeset viewer.