[Zope-Checkins] CVS: Zope/lib/python/Shared/DC/ZRDB - DA.py:1.114
Tres Seaver
cvs-admin at zope.org
Thu Dec 4 17:03:18 EST 2003
Update of /cvs-repository/Zope/lib/python/Shared/DC/ZRDB
In directory cvs.zope.org:/tmp/cvs-serv11322/lib/python/Shared/DC/ZRDB
Modified Files:
DA.py
Log Message:
- Merge patch from Collector #927 from 2.7 branch.
=== Zope/lib/python/Shared/DC/ZRDB/DA.py 1.113 => 1.114 ===
--- Zope/lib/python/Shared/DC/ZRDB/DA.py:1.113 Fri Nov 28 11:46:37 2003
+++ Zope/lib/python/Shared/DC/ZRDB/DA.py Thu Dec 4 17:03:17 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