Changeset 4001 for WAeUP_SRP/trunk


Ignore:
Timestamp:
6 Mar 2009, 17:39:17 (16 years ago)
Author:
Henrik Bettermann
Message:
  • fetch email from application object if catalog entry is empty (resolve AAUE #15)
  • fix slip template
Location:
WAeUP_SRP/trunk/skins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_aaue/slip_template.pt

    r3763 r4001  
    7878        <tr>
    7979          <td style="width: 20px;" valign="top"></td>
    80           <td valign="top" style="padding: 0.5em; text-align: right;">
     80          <td valign="top" style="padding: 0.5em; text-align: left;">
    8181            <img tal:attributes="src string:${static_base_url}logo.png"  alt="Logo"
    8282                     />
  • WAeUP_SRP/trunk/skins/waeup_student/getFormattedStudentEntry.py

    r1970 r4001  
    2626    elif f == "name":
    2727        d[f] = d[f].strip()
     28
     29if not d['email']:
     30    students_object = context.portal_url.getPortalObject().campus.students
     31    student = getattr(students_object, brain.id)
     32    app_obj = student.application.getContent()
     33    d['email'] = getattr(app_obj, 'app_email', '')
    2834           
    2935return d           
Note: See TracChangeset for help on using the changeset viewer.