[Zope-Checkins] CVS: Zope/lib/python/Shared/DC/ZRDB -
DA.py:1.110.12.4
Tres Seaver
cvs-admin at zope.org
Thu Dec 4 16:57:39 EST 2003
Update of /cvs-repository/Zope/lib/python/Shared/DC/ZRDB
In directory cvs.zope.org:/tmp/cvs-serv10326/lib/python/Shared/DC/ZRDB
Modified Files:
Tag: Zope-2_7-branch
DA.py
Log Message:
- Collector #927: Raise a more specific exception than BadRequest when disconnected.
=== Zope/lib/python/Shared/DC/ZRDB/DA.py 1.110.12.3 => 1.110.12.4 ===
--- Zope/lib/python/Shared/DC/ZRDB/DA.py:1.110.12.3 Mon Nov 17 17:34:16 2003
+++ Zope/lib/python/Shared/DC/ZRDB/DA.py Thu Dec 4 16:57:38 2003
@@ -42,6 +42,11 @@
except: Bucket=lambda:{}
+class DatabaseError(BadRequest):
+ " base class for external relational data base connection problems "
+ pass
+
+
class nvSQL(DocumentTemplate.HTML):
# Non-validating SQL Template for use by SQLFiles.
commands={}
@@ -412,7 +417,7 @@
c))
try: DB__=dbc()
- except: raise BadRequest, (
+ except: raise DatabaseError, (
'%s is not connected to a database' % self.id)
if hasattr(self, 'aq_parent'):
More information about the Zope-Checkins
mailing list