Changeset 645 for WAeUP_SRP/trunk


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

fixed getStudentInfo

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/application_slip.pt

    r613 r645  
    2323      <tr>
    2424      <td valign="top">
    25         <img tal:condition="application_data/passport|nothing"
     25        <img tal:condition="application_data/passport|nothing" width="150" height="200"
    2626             tal:attributes="src string:${context/absolute_url}/application/passport"/>
    2727              <span tal:condition="nothing" tal:replace="structure application_data/passport" />
  • 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.