Changeset 909 for WAeUP_SRP/trunk/skins
- Timestamp:
- 20 Nov 2006, 13:45:07 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/mail2student.py
r891 r909 26 26 27 27 #prop.email_from_address should be used for To: 28 28 REQUEST = context.REQUEST 29 url_tuple = REQUEST.HTTP_REFERER.split('?') 30 if len(url_tuple) == 2: 31 url_tuple[1] ='portal_status_message=Your message has been sent!' 32 else: 33 url_tuple.append('portal_status_message=Your message has been sent!') 34 redirect_url = "?".join(url_tuple) 35 REQUEST.set('rurl', redirect_url) # to see the result in the error log 29 36 msg = message % ( 30 37 co_name, 31 38 co_email, 32 student_email, 39 student_email, 33 40 co_email, 34 41 'henrik@waeup.org', … … 43 50 RESPONSE = REQUEST.RESPONSE 44 51 45 redirect_url = REQUEST.HTTP_REFERER46 redirect_url = '%s/?%s' % (redirect_url,'portal_status_message=Your message has been sent!')47 52 RESPONSE.redirect(redirect_url)
Note: See TracChangeset for help on using the changeset viewer.