[prev in list] [next in list] [prev in thread] [next in thread]
List: zope-cvs
Subject: [Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog - CatalogBrains.py:1.6
From: Chris McDonough <chrism () zope ! com>
Date: 2002-06-30 6:37:54
[Download RAW message or body]
Update of /cvs-repository/Zope/lib/python/Products/ZCatalog
In directory cvs.zope.org:/tmp/cvs-serv23421
Modified Files:
CatalogBrains.py
Log Message:
The getObject method of the AbstractCatalogBrains class used a
"bareword" except: pass in a try: statement. It now writes
a log message before passing.
=== Zope/lib/python/Products/ZCatalog/CatalogBrains.py 1.5 => 1.6 ===
import Acquisition, Record
+import zLOG
+import sys
class AbstractCatalogBrain(Record.Record, Acquisition.Implicit):
"""Abstract base brain that handles looking up attributes as
@@ -44,6 +46,8 @@
obj = self.aq_parent.resolve_url(self.getPath(), REQUEST)
return obj
except:
+ zLOG.LOG('CatalogBrains', zLOG.INFO, 'getObject raised an error',
+ error=sys.exc_info())
pass
def getRID(self):
_______________________________________________
Zope-Checkins maillist - Zope-Checkins@zope.org
http://lists.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