[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cvs
Subject:    [Zope-Checkins] CVS: Zope/lib/python/Shared/DC/ZRDB - DA.py:1.116
From:       "Stefan H. Holek" <stefan () epy ! co ! at>
Date:       2004-04-29 20:01:14
Message-ID: 200404292001.i3TK1EQE008930 () cvs ! zope ! org
[Download RAW message or body]

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
+


_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic