[llvm-commits] CVS: llvm-www/releases/register.cgi

John Criswell criswell at cs.uiuc.edu
Tue Dec 16 15:05:04 PST 2003


Changes in directory llvm-www/releases:

register.cgi updated: 1.5 -> 1.6

---
Log message:

Added the ability to set a cookie.



---
Diffs of the changes:  (+10 -2)

Index: llvm-www/releases/register.cgi
diff -u llvm-www/releases/register.cgi:1.5 llvm-www/releases/register.cgi:1.6
--- llvm-www/releases/register.cgi:1.5	Mon Dec 15 13:15:11 2003
+++ llvm-www/releases/register.cgi	Tue Dec 16 15:04:27 2003
@@ -5,6 +5,7 @@
 import smtplib
 import os
 import sys
+import Cookie
 
 # List of email addresses that want to know when people download
 notifylist=['vadve at cs.uiuc.edu', 'criswell at uiuc.edu', 'sabre at nondot.org']
@@ -159,7 +160,7 @@
 	print ('Status: 400 Bad Request')
 	print ('')
 	print ('<h2>')
-	print ('Error in form:' + error)
+	print ('Error in form: ' + error)
 	print ('</h2>')
 	sys.exit (0)
 
@@ -174,7 +175,14 @@
 Subscribe (form)
 
 #
-# Everything so far has worked.  Send the user to the download page.
+# Create a cookie so that the user does not need to register again.
+#
+usercookie = Cookie.SimpleCookie()
+usercookie['LLVM Download'] = 'Yes'
+usercookie.output()
+
+#
+# Send the user to the download page.
 #
 print ('Location: /releases/download.html')
 print ('')





More information about the llvm-commits mailing list