[Zope3-checkins] CVS: Zope3/src/zope/publisher/interfaces - __init__.py:1.5.2.1 http.py:1.2.4.1

Sidnei da Silva sidnei@x3ng.com.br
Tue, 11 Feb 2003 09:42:08 -0500


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

Modified Files:
      Tag: paris-copypasterename-branch
	__init__.py http.py 
Log Message:
Updating from HEAD to make sure everything still works before merging

=== Zope3/src/zope/publisher/interfaces/__init__.py 1.5 => 1.5.2.1 ===
--- Zope3/src/zope/publisher/interfaces/__init__.py:1.5	Wed Jan 15 10:32:20 2003
+++ Zope3/src/zope/publisher/interfaces/__init__.py	Tue Feb 11 09:41:36 2003
@@ -101,6 +101,20 @@
         return repr(self.orig_exc)
 
 
+class IExceptionSideEffects(Interface):
+    '''An exception caught by the publisher is adapted to this so that
+    it can have persistent side-effects.'''
+
+    def __call__(obj, request, exc_info):
+        '''Effect persistent side-effects.
+
+        Arguments are:
+          obj                 context-wrapped object that was published
+          request             the request
+          exc_info            the exception info being handled
+        '''
+
+
 class IPublishTraverse(Interface):
 
     def publishTraverse(request, name):


=== Zope3/src/zope/publisher/interfaces/http.py 1.2 => 1.2.4.1 ===
--- Zope3/src/zope/publisher/interfaces/http.py:1.2	Wed Dec 25 09:15:18 2002
+++ Zope3/src/zope/publisher/interfaces/http.py	Tue Feb 11 09:41:36 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