Changeset 3859


Ignore:
Timestamp:
17 Jan 2009, 08:11:19 (16 years ago)
Author:
Henrik Bettermann
Message:

finalize last revision

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

Legend:

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

    r3858 r3859  
    8282    app_email = info['app_email'] = student.application.getContent().app_email
    8383    per_email = info['per_email'] = student_record.email
    84     if app_email:
     84    if per_email:
     85        info['email'] = per_email
     86    elif app_email:
    8587        info['email'] = app_email
    8688    else:
    87         info['email'] = per_email
     89        info['email'] = ''
     90
    8891    info['message'] = complete_msg % info
    8992    info['with_email'] = bool(info['email'])
  • WAeUP_SRP/trunk/skins/waeup_student/retrieve_password.py

    r3858 r3859  
    1414REQUEST = context.REQUEST
    1515
     16short_msg="""
     17From: %s <%s>
     18To: %s
     19Reply-To: %s
     20Subject: %s
     21Your SRP Member Details
     22-----------------------
     23
     24Fullname: %s
     25Student Id: %s
     26Password: %s
     27
     28"""
    1629
    1730mtool = context.portal_membership
     
    7790    probtype = 'Your Student Id and Password'
    7891
    79     short_msg="""
    80     From: %s <%s>
    81     To: %s
    82     Reply-To: %s
    83     Subject: %s
    84     Your SRP Member Details
    85     -----------------------
    86    
    87     Fullname: %s
    88     Student Id: %s
    89     Password: %s
    90    
    91     """
     92
    9293    message = short_msg %(co_name,co_email,email,co_email,probtype,record.name,s_id,pw)
    93     #mhost.send(message % d)
     94    mhost.send(message)
    9495
    95     return message
    9696    return context.retrieve_password_form(rendered = res,
    9797                             psm = "Notification has been sent!",
Note: See TracChangeset for help on using the changeset viewer.