durusmail: quixote-users: Patch for medusa_http.py
Patch for medusa_http.py
2002-11-04
2002-11-04
2002-11-04
2002-11-04
2002-11-04
2002-11-05
(Another) patch for medusa_http.py
2002-11-06
2002-11-06
2002-11-06
2002-11-06
2002-11-13
2002-11-20
2002-11-20
2002-12-22
Patch for medusa_http.py
Andrew Kuchling
2002-11-04
On Mon, Nov 04, 2002 at 03:20:10PM +0100, Nicola Larosa wrote:
>         stdin = StringIO(data)
>         qreq = HTTPRequest(stdin, environ)
>+        self.publisher.start_time = time.time()
>         qreq.process_inputs()
>         output = self.publisher.process_request(qreq, environ)
>         if output:

This part of the patch is no longer needed with the current CVS; the
start_time attribute has moved to the HTTPRequest object.

>@@ -100,6 +103,8 @@
>     print 'Now serving the Quixote demo on port 8080'
>     server = http_server.http_server('', 8080)
>     publisher = Publisher('quixote.demo')
>+    publisher.read_config("demo.conf")
>+    publisher.setup_logs()
>     dh = QuixoteHandler(publisher, 'Quixote/demo', server)
>     server.install_handler(dh)
>     asyncore.loop()

Hmm... the read_config() call doesn't work for me, running
./medusa_http.py, because demo.conf isn't in the current directory.
It should really use the full path of demo.conf, but I don't see how
the script can figure that out.  Anyone got a suggestion for what to
do?

I've applied the rest of your patches, though, since they're obviously
correct.  Thanks!

--amk

reply