[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication - ZopePublication.py:1.11

Jim Fulton jim@zope.com
Wed, 23 Oct 2002 13:06:00 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication
In directory cvs.zope.org:/tmp/cvs-serv17411/lib/python/Zope/App/ZopePublication

Modified Files:
	ZopePublication.py 
Log Message:
Fixed error reporting so that errors that occur during traversal can
be logged by the error reporting service.


=== Zope3/lib/python/Zope/App/ZopePublication/ZopePublication.py 1.10 => 1.11 ===
--- Zope3/lib/python/Zope/App/ZopePublication/ZopePublication.py:1.10	Wed Oct 23 12:00:20 2002
+++ Zope3/lib/python/Zope/App/ZopePublication/ZopePublication.py	Wed Oct 23 13:05:59 2002
@@ -179,6 +179,13 @@
         try:
             # Abort the transaction.
             get_transaction().abort()
+
+            try:
+                errService = getService(object,'ErrorReportingService')
+                errService.raising(exc_info, request)
+            except ComponentLookupError:
+                pass
+
             # Delegate Unauthorized errors to the authentication service
             # XXX Is this the right way to handle Unauthorized?  We need
             # to understand this better.
@@ -188,12 +195,6 @@
                 prin_reg.unauthorized(id, request) # May issue challenge
                 request.response.handleException(exc_info)
                 return
-
-            try:
-                errService = getService(object,'ErrorReportingService')
-                errService.raising(exc_info, request)
-            except ComponentLookupError:
-                pass
 
             # XXX This is wrong. Should use getRequstView:
             #