[llvm-commits] CVS: llvm-www/releases/testregister.cgi
John Criswell
criswell at cs.uiuc.edu
Thu Dec 18 11:25:08 PST 2003
Changes in directory llvm-www/releases:
testregister.cgi updated: 1.3 -> 1.4
---
Log message:
Testing logging functionality.
---
Diffs of the changes: (+13 -6)
Index: llvm-www/releases/testregister.cgi
diff -u llvm-www/releases/testregister.cgi:1.3 llvm-www/releases/testregister.cgi:1.4
--- llvm-www/releases/testregister.cgi:1.3 Tue Dec 16 15:11:53 2003
+++ llvm-www/releases/testregister.cgi Thu Dec 18 11:24:21 2003
@@ -10,6 +10,9 @@
# 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']
+# Full pathname of the logfile
+logfilename='/var/tmp/LLVMDownloads'
+
#
# Function: Subscribe()
#
@@ -144,6 +147,16 @@
except:
pass
mailer.quit ()
+
+ #
+ # Open the logfile, lock it, and write a new entry.
+ #
+ logfile = file (logfilename, 'ra')
+ os.lockf (logfile, os.LOCK_EX)
+ logfile.write (email + ':' + lastname + ':' + firstname + '\n')
+ logfile.flush ()
+ logfile.close ()
+
return
#
@@ -175,12 +188,6 @@
#
#Subscribe (form)
-#
-# Create a cookie so that the user does not need to register again.
-#
-usercookie = Cookie.SmartCookie()
-usercookie["LLVM"] = "Yes"
-print usercookie
#
# Send the user to the download page.
More information about the llvm-commits
mailing list