Changeset 5565
- Timestamp:
- 8 Oct 2010, 11:01:38 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_uniben/mail2admin.py
r3709 r5565 35 35 """ 36 36 37 mhost.send(message % d)38 39 37 REQUEST = context.REQUEST 40 38 RESPONSE = REQUEST.RESPONSE 39 redirect_url = REQUEST.HTTP_REFERER 41 40 42 redirect_url = REQUEST.HTTP_REFERER 43 redirect_url = '%s/?%s' % (redirect_url,'portal_status_message=Your message has been sent!') 41 42 try: 43 mhost.send(message % d) 44 redirect_url = '%s/?%s' % (redirect_url,'portal_status_message=Your message has been sent!') 45 except: 46 redirect_url = '%s/?%s' % (redirect_url,'portal_status_message=An error occurred, your message has not been sent!') 47 44 48 RESPONSE.redirect(redirect_url)
Note: See TracChangeset for help on using the changeset viewer.