Commit 1e0590d4 authored by Tres Seaver's avatar Tres Seaver

- Merge patch from Collector #927 from 2.7 branch.

parent bcd11c4b
......@@ -13,7 +13,7 @@
__doc__='''Generic Database adapter'''
__version__='$Revision: 1.113 $'[11:-2]
__version__='$Revision: 1.114 $'[11:-2]
import OFS.SimpleItem, Aqueduct, RDB, re
import DocumentTemplate, marshal, md5, base64, Acquisition, os
......@@ -42,6 +42,11 @@ try: from IOBTree import Bucket
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 @@ class DA(
c))
try: DB__=dbc()
except: raise BadRequest, (
except: raise DatabaseError, (
'%s is not connected to a database' % self.id)
if hasattr(self, 'aq_parent'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment