[Zope3-checkins] SVN: Zope3/trunk/ Switched the ZConfig svn:external to the trunk. Also integrated traceback

Shane Hathaway shane at zope.com
Wed Jan 18 23:43:41 EST 2006


Log message for revision 41360:
  Switched the ZConfig svn:external to the trunk.  Also integrated traceback
  info in a couple of places.  See:
  
  http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/EnhanceTracebacksInPersistentLogs
  

Changed:
  _U  Zope3/trunk/src/
  U   Zope3/trunk/src/zope/app/traversing/adapters.py
  U   Zope3/trunk/src/zope/publisher/base.py
  U   Zope3/trunk/zopeskel/etc/zope.conf.in

-=-

Property changes on: Zope3/trunk/src
___________________________________________________________________
Name: svn:externals
   - ZConfig        svn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3.1
BTrees         -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/BTrees
persistent     -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/persistent
ThreadedAsync  -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ThreadedAsync
transaction    -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/transaction
ZEO            -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZEO
ZODB           -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZODB
twisted        -r 15340 svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/2.1.x/twisted
zdaemon        -r 40792 svn://svn.zope.org/repos/main/zdaemon/trunk/src/zdaemon

   + ZConfig        svn://svn.zope.org/repos/main/ZConfig/trunk/ZConfig
BTrees         -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/BTrees
persistent     -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/persistent
ThreadedAsync  -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ThreadedAsync
transaction    -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/transaction
ZEO            -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZEO
ZODB           -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZODB
twisted        -r 15340 svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/2.1.x/twisted
zdaemon        -r 40792 svn://svn.zope.org/repos/main/zdaemon/trunk/src/zdaemon


Modified: Zope3/trunk/src/zope/app/traversing/adapters.py
===================================================================
--- Zope3/trunk/src/zope/app/traversing/adapters.py	2006-01-19 04:36:59 UTC (rev 41359)
+++ Zope3/trunk/src/zope/app/traversing/adapters.py	2006-01-19 04:43:41 UTC (rev 41360)
@@ -151,6 +151,8 @@
     not provided.
 
     """
+    __traceback_info__ = (obj, name)
+
     if name == '.':
         return obj
 

Modified: Zope3/trunk/src/zope/publisher/base.py
===================================================================
--- Zope3/trunk/src/zope/publisher/base.py	2006-01-19 04:36:59 UTC (rev 41359)
+++ Zope3/trunk/src/zope/publisher/base.py	2006-01-19 04:43:41 UTC (rev 41360)
@@ -18,13 +18,13 @@
 
 $Id$
 """
-import traceback
 from cStringIO import StringIO
 
 from zope.deprecation import deprecated
 
 from zope.interface import implements, providedBy
 from zope.interface.common.mapping import IReadMapping, IEnumerableMapping
+from zope.exceptions.exceptionformatter import print_exception
 
 from zope.publisher.interfaces import IPublication, IHeld
 from zope.publisher.interfaces import NotFound, DebugError, Unauthorized
@@ -62,7 +62,7 @@
     def handleException(self, exc_info):
         'See IPublisherResponse'
         f = StringIO()
-        traceback.print_exception(
+        print_exception(
             exc_info[0], exc_info[1], exc_info[2], 100, f)
         self.setResult(f.getvalue())
 

Modified: Zope3/trunk/zopeskel/etc/zope.conf.in
===================================================================
--- Zope3/trunk/zopeskel/etc/zope.conf.in	2006-01-19 04:36:59 UTC (rev 41359)
+++ Zope3/trunk/zopeskel/etc/zope.conf.in	2006-01-19 04:43:41 UTC (rev 41360)
@@ -103,10 +103,12 @@
 
   <logfile>
     path $LOGDIR/z3.log
+    formatter zope.exceptions.log.Formatter
   </logfile>
 
   <logfile>
     path STDOUT
+    formatter zope.exceptions.log.Formatter
   </logfile>
 </eventlog>
 



More information about the Zope3-Checkins mailing list