[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/HTTP/tests - testHTTPServer.py:1.1.2.2

Stephan Richter srichter@cbu.edu
Thu, 4 Apr 2002 06:45:23 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Server/HTTP/tests
In directory cvs.zope.org:/tmp/cvs-serv21650/lib/python/Zope/Server/HTTP/tests

Modified Files:
      Tag: Zope3-Server-Branch
	testHTTPServer.py 
Log Message:
Worked some more on FTP, especially in regards with the Publisher.

- Finally we can get rid of the medusa base. I think I have extracted all
  of the interesting code.

- Started on a PublisherFileSystem. A few methods might work, but most of 
  the FS methods are not hooked up yet.

- Started writing VFS Publisher hooks.

- Added the FTPServer to the startup registry. It comes up, but do not 
  expect it to work, since no views have been written for VFS yet.


=== Zope3/lib/python/Zope/Server/HTTP/tests/testHTTPServer.py 1.1.2.1 => 1.1.2.2 ===
 import socket
 
-from Zope.Server.medusa.thread import select_trigger
 from threading import Thread
 from Zope.Server.TaskThreads import ThreadedTaskDispatcher
 from Zope.Server.HTTP.HTTPServer import HTTPServer
@@ -47,7 +46,7 @@
 my_adj.inbuf_overflow = 10000
 
 
-class EchoHTTPTask (HTTPTask):
+class EchoHTTPTask(HTTPTask):
 
     def execute(self):
         headers = self.request_data.headers
@@ -62,12 +61,12 @@
             self.write(data)
 
 
-class EchoHTTPChannel (HTTPServerChannel):
+class EchoHTTPChannel(HTTPServerChannel):
 
     task_class = EchoHTTPTask
 
 
-class EchoHTTPServer (HTTPServer):
+class EchoHTTPServer(HTTPServer):
 
     channel_class = EchoHTTPChannel