[Zope3-checkins] CVS: Zope3/src/zope/publisher/interfaces - http.py:1.3
Jim Fulton
jim@zope.com
Fri, 7 Feb 2003 10:40:32 -0500
Update of /cvs-repository/Zope3/src/zope/publisher/interfaces
In directory cvs.zope.org:/tmp/cvs-serv21216
Modified Files:
http.py
Log Message:
Added the "method" attribute to store the HTTP request method.
=== Zope3/src/zope/publisher/interfaces/http.py 1.2 => 1.3 ===
--- Zope3/src/zope/publisher/interfaces/http.py:1.2 Wed Dec 25 09:15:18 2002
+++ Zope3/src/zope/publisher/interfaces/http.py Fri Feb 7 10:40:31 2003
@@ -22,6 +22,30 @@
from zope.publisher.interfaces import IApplicationRequest
from zope.publisher.interfaces import IApplicationResponse
+from zope.component.interfaces import IPresentation
+from zope.component.interfaces import IResource
+from zope.component.interfaces import IView
+
+
+class IHTTPPresentation(IPresentation):
+ """HTTP presentations are for interaction with user's using Web HTTPs
+ """
+
+class IHTTPResource(IHTTPPresentation, IResource):
+ """HTTP View
+ """
+
+ def __call__():
+ """Return a URL for getting the resource
+
+ This URL should not be context dependent. Typically, the URL
+ will be based on the service that defined the resource.
+ """
+
+class IHTTPView(IHTTPPresentation, IView):
+ "HTTP View"
+
+
class IHTTPApplicationRequest(IApplicationRequest):
"""HTTP request data.
@@ -152,6 +176,8 @@
# XXX Should we extend IRequest?
class IHTTPRequest(Interface):
+
+ method = Attribute("Request method, normalized to upper case")
def setPathSuffix(steps):
"""Add additional traversal steps to be taken after all other traversal