[Zope-Checkins] CVS: Zope/lib/python/Shared/DC/ZRDB - DA.py:1.116
Stefan H. Holek
stefan at epy.co.at
Thu Apr 29 16:01:14 EDT 2004
Update of /cvs-repository/Zope/lib/python/Shared/DC/ZRDB
In directory cvs.zope.org:/tmp/cvs-serv8649/Shared/DC/ZRDB
Modified Files:
DA.py
Log Message:
Collector #1298, ZSQLMethods now use a __traceback_supplement__ to not get
rendered in the site error log.
=== Zope/lib/python/Shared/DC/ZRDB/DA.py 1.115 => 1.116 ===
--- Zope/lib/python/Shared/DC/ZRDB/DA.py:1.115 Mon Apr 19 05:08:46 2004
+++ Zope/lib/python/Shared/DC/ZRDB/DA.py Thu Apr 29 16:01:11 2004
@@ -399,6 +399,8 @@
The returned value is a sequence of record objects.
"""
+ __traceback_supplement__ = (SQLMethodTracebackSupplement, self)
+
if REQUEST is None:
if kw: REQUEST=kw
else:
@@ -577,3 +579,10 @@
r=self.__dict__['_r']
if hasattr(r, name): return getattr(r,name)
return getattr(self.__dict__['_da'], name)
+
+
+class SQLMethodTracebackSupplement:
+ #__implements__ = ITracebackSupplement
+ def __init__(self, sql):
+ self.object = sql
+
More information about the Zope-Checkins
mailing list