[llvm-commits] CVS: llvm-www/releases/testregister.cgi
John Criswell
criswell at cs.uiuc.edu
Thu Dec 18 14:59:01 PST 2003
Changes in directory llvm-www/releases:
testregister.cgi updated: 1.19 -> 1.20
---
Log message:
Try using pickling.
---
Diffs of the changes: (+5 -4)
Index: llvm-www/releases/testregister.cgi
diff -u llvm-www/releases/testregister.cgi:1.19 llvm-www/releases/testregister.cgi:1.20
--- llvm-www/releases/testregister.cgi:1.19 Thu Dec 18 13:46:59 2003
+++ llvm-www/releases/testregister.cgi Thu Dec 18 14:58:08 2003
@@ -6,13 +6,14 @@
import os
import fcntl
import sys
+import pickle
# 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']
notifylist=['criswell at uiuc.edu']
# Full pathname of the logfile
-logfilename='/var/tmp/LLVMDownloads'
+logfilename='/var/tmp/testLLVMDownloads'
#
# Function: checkForColon()
@@ -190,7 +191,7 @@
try:
logfile = file (logfilename, 'a')
fcntl.lockf (logfile, fcntl.LOCK_EX)
- logfile.write (email + ':' + firstname + ':' + lastname + ':' + organization + ':' + title + '\n')
+ pickle.dump ((email, firstname, lastname, organization, title), logfile)
logfile.flush ()
fcntl.lockf (logfile, fcntl.LOCK_UN)
logfile.close ()
@@ -199,8 +200,8 @@
return
-print ('Content-type: text/plain\n\n')
-print ('')
+#print ('Content-type: text/plain\n\n')
+#print ('')
#
# Parse the CGI input
More information about the llvm-commits
mailing list