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

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


Changes in directory llvm-www/releases:

testregister.cgi updated: 1.2 -> 1.3

---
Log message:

Working cookie support that doesn't do anything.



---
Diffs of the changes:  (+6 -5)

Index: llvm-www/releases/testregister.cgi
diff -u llvm-www/releases/testregister.cgi:1.2 llvm-www/releases/testregister.cgi:1.3
--- llvm-www/releases/testregister.cgi:1.2	Tue Dec 16 15:08:56 2003
+++ llvm-www/releases/testregister.cgi	Tue Dec 16 15:11:53 2003
@@ -154,7 +154,8 @@
 #
 # Verify that everything in the form is correct.
 #
-error = ValidateForm (form)
+#error = ValidateForm (form)
+error = ''
 if (error != ''):
 	print ('Content-type: text/html')
 	print ('Status: 400 Bad Request')
@@ -172,14 +173,14 @@
 #
 # Subscribe the user the LLVM Announcements list (if they so desire)
 #
-Subscribe (form)
+#Subscribe (form)
 
 #
 # Create a cookie so that the user does not need to register again.
 #
-usercookie = Cookie.SimpleCookie()
-usercookie['LLVM Download'] = 'Yes'
-usercookie.output()
+usercookie = Cookie.SmartCookie()
+usercookie["LLVM"] = "Yes"
+print usercookie
 
 #
 # Send the user to the download page.





More information about the llvm-commits mailing list