Changeset 3456 for WAeUP_SRP/base


Ignore:
Timestamp:
21 Apr 2008, 10:03:31 (17 years ago)
Author:
joachim
Message:

fill students name, (in custom)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/getMemberInfo.py

    r3100 r3456  
    4444    info['per'] = getattr(student,'personal',None)
    4545    info['app'] = student.application
    46     info['per_doc'] = student.personal.getContent()
     46    per_doc = info['per_doc'] = student.personal.getContent()
    4747    info['app_doc'] = student.application.getContent()
    4848    info['clear_doc'] = student.clearance.getContent()
    4949    info['password'] = context.waeup_tool.getCredential(student_id)
    50 
     50    info['student_name'] = "%s %s %s" % (per_doc.firstname,per_doc.middlename,per_doc.lastname)
     51   
    5152#    if info['per_doc'].email:
    5253#        info['email'] = info['per_doc'].email
     
    7677
    7778    info['message'] = msg % (
    78         student.Title(),
    79         student_id,
     79        info['student_name'],
     80        student_id,                     
    8081        info['clear_doc'].matric_no,
    8182        info['app_doc'].jamb_reg_no,
Note: See TracChangeset for help on using the changeset viewer.