[Zope-Checkins] CVS: Zope/lib/python/Zope/App - startup.py:1.10
Shane Hathaway
shane at zope.com
Tue Sep 16 11:35:08 EDT 2003
Update of /cvs-repository/Zope/lib/python/Zope/App
In directory cvs.zope.org:/tmp/cvs-serv10337
Modified Files:
startup.py
Log Message:
Found and fixed the source of the "AttributeError: __error_log__" bug.
This code looks for the __error_log__ attribute in order to report an
error. If it finds no such attribute, it reports the error in a
different way. Unfortunately, the alternative branch was reporting
the exception that just happened to occur most recently, which is
irrelevant; it needs to report the error that was passed to it.
Fixed.
=== Zope/lib/python/Zope/App/startup.py 1.9 => 1.10 ===
--- Zope/lib/python/Zope/App/startup.py:1.9 Sat Jul 19 22:56:11 2003
+++ Zope/lib/python/Zope/App/startup.py Tue Sep 16 11:35:07 2003
@@ -184,7 +184,8 @@
f=getattr(published, 'raise_standardErrorMessage', None)
if f is None:
published=getattr(published, 'aq_parent', None)
- if published is None: raise
+ if published is None:
+ raise t, v, traceback
else:
break
@@ -193,7 +194,8 @@
if getattr(client, 'standard_error_message', None) is not None:
break
client=getattr(client, 'aq_parent', None)
- if client is None: raise
+ if client is None:
+ raise t, v, traceback
if REQUEST.get('AUTHENTICATED_USER', None) is None:
REQUEST['AUTHENTICATED_USER']=AccessControl.User.nobody
More information about the Zope-Checkins
mailing list