quixote http_request.py,1.51,1.52

Greg Ward <gward-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]>
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Update of /home/cvs/quixote
In directory hewson:/tmp/cvs-serv16264

Modified Files:
	http_request.py 
Log Message:
Add start_time attribute (moved from Publisher).


Index: http_request.py
===================================================================
RCS file: /home/cvs/quixote/http_request.py,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- http_request.py	14 Oct 2002 23:00:11 -0000	1.51
+++ http_request.py	16 Oct 2002 18:42:19 -0000	1.52
@@ -23,6 +23,7 @@
 __revision__ = "$Id$"
 
 import re
+import time
 import urlparse
 from cgi import FieldStorage
 from types import ListType
@@ -104,6 +105,7 @@
         self.form = {}
         self.session = None
         self.response = HTTPResponse()
+        self.start_time = None
 
         # The strange treatment of SERVER_PORT_SECURE is because IIS
         # sets this environment variable to "0" for non-SSL requests
@@ -147,8 +149,8 @@
     def process_inputs (self):
         """Process request inputs.
         """
+        self.start_time = time.time()
         method = self.environ.get('REQUEST_METHOD', 'GET')
-        
         if method != 'GET':
             # Avoid consuming the contents of stdin unless we're sure
             # there's actually form data.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.