Changeset 3859
- Timestamp:
- 17 Jan 2009, 08:11:19 (16 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getMemberInfo.py
r3858 r3859 82 82 app_email = info['app_email'] = student.application.getContent().app_email 83 83 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: 85 87 info['email'] = app_email 86 88 else: 87 info['email'] = per_email 89 info['email'] = '' 90 88 91 info['message'] = complete_msg % info 89 92 info['with_email'] = bool(info['email']) -
WAeUP_SRP/trunk/skins/waeup_student/retrieve_password.py
r3858 r3859 14 14 REQUEST = context.REQUEST 15 15 16 short_msg=""" 17 From: %s <%s> 18 To: %s 19 Reply-To: %s 20 Subject: %s 21 Your SRP Member Details 22 ----------------------- 23 24 Fullname: %s 25 Student Id: %s 26 Password: %s 27 28 """ 16 29 17 30 mtool = context.portal_membership … … 77 90 probtype = 'Your Student Id and Password' 78 91 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 92 93 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) 94 95 95 return message96 96 return context.retrieve_password_form(rendered = res, 97 97 psm = "Notification has been sent!",
Note: See TracChangeset for help on using the changeset viewer.