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

Jim Fulton jim@zope.com
Mon, 10 Jun 2002 15:34:58 -0400


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

Modified Files:
      Tag: Zope-3x-branch
	testHTTPServer.py 
Log Message:
Implemented 

http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/IContainerPythonification

Along the way:

- Converted most uses of has_key to use in.

- Fixed a bug in Interface names and namesAndDescriptions methods 
  that caused base class attributes to be missed.



=== Zope3/lib/python/Zope/Server/HTTP/tests/testHTTPServer.py 1.1.4.1 => 1.1.4.2 ===
     def executeRequest(self, task):
         headers = task.request_data.headers
-        if headers.has_key('CONTENT_LENGTH'):
+        if 'CONTENT_LENGTH' in headers:
             cl = headers['CONTENT_LENGTH']
             task.response_headers['Content-Length'] = cl
         instream = task.request_data.getBodyStream()