[Zope3-checkins] CVS: Zope3/src/zope/publisher/interfaces - http.py:1.20

Philipp von Weitershausen philikon at philikon.de
Fri Mar 19 13:31:39 EST 2004


Update of /cvs-repository/Zope3/src/zope/publisher/interfaces
In directory cvs.zope.org:/tmp/cvs-serv23305

Modified Files:
	http.py 
Log Message:
Let HTTP request and response inherit from base interfaces.


=== Zope3/src/zope/publisher/interfaces/http.py 1.19 => 1.20 ===
--- Zope3/src/zope/publisher/interfaces/http.py:1.19	Wed Mar 17 13:24:47 2004
+++ Zope3/src/zope/publisher/interfaces/http.py	Fri Mar 19 13:31:38 2004
@@ -22,6 +22,8 @@
 from zope.publisher.interfaces import IApplicationRequest
 from zope.publisher.interfaces import IApplicationResponse
 from zope.publisher.interfaces import IPublishTraverse
+from zope.publisher.interfaces import IRequest
+from zope.publisher.interfaces import IResponse
 
 from zope.component.interfaces import IPresentation
 from zope.component.interfaces import IResource
@@ -33,7 +35,7 @@
     """
 
 class IHTTPView(IHTTPPresentation, IView):
-    "HTTP View"
+    """HTTP View"""
 
 
 class IVirtualHostRequest(Interface):
@@ -202,9 +204,7 @@
     """HTTP Publisher"""
 
 
-# XXX Should we extend IRequest?
-
-class IHTTPRequest(Interface):
+class IHTTPRequest(IRequest):
 
     method = Attribute("Request method, normalized to upper case")
 
@@ -240,7 +240,7 @@
         """
 
 
-class IHTTPResponse(Interface):
+class IHTTPResponse(IResponse):
     """An object representation of an HTTP response.
 
     The Response type encapsulates all possible responses to HTTP




More information about the Zope3-Checkins mailing list