[Zope3-checkins] CVS: Zope3/lib/python/Zope/Publisher - DefaultPublication.py:1.3.14.1 IPublication.py:1.4.10.1 Publish.py:1.4.14.1

Rakesh Naidu rnaidu@zeomega.com
Fri, 18 Oct 2002 09:01:33 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher
In directory cvs.zope.org:/tmp/cvs-serv24863/ErrorReportingService-branch/lib/python/Zope/Publisher

Modified Files:
      Tag: ErrorReportingService-branch
	DefaultPublication.py IPublication.py Publish.py 
Log Message:
New parameter(object) has been added to handleException Method 


=== Zope3/lib/python/Zope/Publisher/DefaultPublication.py 1.3 => 1.3.14.1 ===
--- Zope3/lib/python/Zope/Publisher/DefaultPublication.py:1.3	Tue Jun 18 10:47:06 2002
+++ Zope3/lib/python/Zope/Publisher/DefaultPublication.py	Fri Oct 18 09:01:02 2002
@@ -66,7 +66,7 @@
     def afterCall(self, request):
         pass
 
-    def handleException(self, request, exc_info, retry_allowed=1):
+    def handleException(self, object, request, exc_info, retry_allowed=1):
         # Let the response handle it as best it can.
         request.response.handleException(exc_info)
 


=== Zope3/lib/python/Zope/Publisher/IPublication.py 1.4 => 1.4.10.1 ===
--- Zope3/lib/python/Zope/Publisher/IPublication.py:1.4	Sun Jul 14 08:24:16 2002
+++ Zope3/lib/python/Zope/Publisher/IPublication.py	Fri Oct 18 09:01:02 2002
@@ -64,7 +64,7 @@
         """Post-callObject hook (if it was successful).
         """
 
-    def handleException(request, exc_info, retry_allowed=1):
+    def handleException(object, request, exc_info, retry_allowed=1):
         """Handle an exception
         
         Either:


=== Zope3/lib/python/Zope/Publisher/Publish.py 1.4 => 1.4.14.1 ===
--- Zope3/lib/python/Zope/Publisher/Publish.py:1.4	Tue Jun 18 10:47:06 2002
+++ Zope3/lib/python/Zope/Publisher/Publish.py	Fri Oct 18 09:01:02 2002
@@ -28,6 +28,7 @@
             publication = request.publication
             try:
                 try:
+                    object = None
                     try:
                         request.processInputs()
                         publication.beforeTraversal(request)
@@ -44,7 +45,8 @@
                         publication.afterCall(request)
 
                     except:
-                        publication.handleException(request, sys.exc_info(), 1)
+                        publication.handleException(object, request, sys.exc_info(), 1)
+                    
                         if not handle_errors:
                             raise
                     
@@ -60,7 +62,7 @@
                         # Output the original exception.
                         publication = request.publication
                         publication.handleException(
-                            request, retryException.getOriginalException(), 0)
+                            object, request, retryException.getOriginalException(), 0)
                         break
                     else:
                         raise