[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/HTTP - HTTPRequest.py:1.1.2.21.2.3

Stephan Richter srichter@cbu.edu
Fri, 22 Mar 2002 00:21:22 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/HTTP
In directory cvs.zope.org:/tmp/cvs-serv31539

Modified Files:
      Tag: Zope3-publisher-refactor-branch
	HTTPRequest.py 
Log Message:
added _createResponse, sinc eit needs to be overridden for the HTTP 
request.


=== Zope3/lib/python/Zope/Publisher/HTTP/HTTPRequest.py 1.1.2.21.2.2 => 1.1.2.21.2.3 ===
 #
-# Copyright (c) 2001 Zope Corporation and Contributors.  All Rights Reserved.
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
 # 
 # This software is subject to the provisions of the Zope Public License,
 # Version 1.1 (ZPL).  A copy of the ZPL should accompany this distribution.
@@ -290,6 +291,12 @@
     #
     ############################################################
 
+    def _createResponse(self, outstream):
+        # Should be overridden by subclasses
+        return HTTPResponse(outstream)
+
+
+
 base64 = None
 
 def sane_environment(env):
@@ -306,8 +313,6 @@
         try: del dict['HTTP_CGI_AUTHORIZATION']
         except: pass
     return dict
-
-
 
 
 def parse_cookie(