diff roundup/cgi/actions.py @ 2045:d124af927369

Forward-porting of fixes from the maintenance branch.
author Richard Jones <richard@users.sourceforge.net>
date Wed, 25 Feb 2004 03:24:43 +0000
parents 5a7ec0c63095
children 78e6a1e4984e
line wrap: on
line diff
--- a/roundup/cgi/actions.py	Mon Feb 23 17:19:09 2004 +0000
+++ b/roundup/cgi/actions.py	Wed Feb 25 03:24:43 2004 +0000
@@ -637,10 +637,16 @@
 
         # nice message
         message = _('You are now registered, welcome!')
+        url = '%suser%s?@ok_message=%s'%(self.base, self.userid,
+            urllib.quote(message))
 
-        # redirect to the user's page
-        raise Redirect, '%suser%s?@ok_message=%s'%(self.base,
-            self.userid, urllib.quote(message))
+        # redirect to the user's page (but not 302, as some email clients seem
+        # to want to reload the page, or something)
+        return '''<html><head><title>%s</title></head>
+            <body><p><a href="%s">%s</a></p>
+            <script type="text/javascript">
+            window.setTimeout('window.location = "%s"', 1000);
+            </script>'''%(message, url, message, url)
 
 class RegisterAction(Action):
     name = 'register'

Roundup Issue Tracker: http://roundup-tracker.org/