Commit b24e4deb authored by 's avatar

Merged fix for #1614: query src not included in error output for malformed

queries.
parent eae6cbff
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
__doc__='''Generic Database adapter __doc__='''Generic Database adapter
$Id: DA.py,v 1.90 2000/07/26 15:48:19 brian Exp $''' $Id: DA.py,v 1.91 2000/09/13 13:48:47 brian Exp $'''
__version__='$Revision: 1.90 $'[11:-2] __version__='$Revision: 1.91 $'[11:-2]
import OFS.SimpleItem, Aqueduct, RDB import OFS.SimpleItem, Aqueduct, RDB
import DocumentTemplate, marshal, md5, base64, Acquisition, os import DocumentTemplate, marshal, md5, base64, Acquisition, os
...@@ -327,8 +327,11 @@ class DA( ...@@ -327,8 +327,11 @@ class DA(
def manage_test(self, REQUEST): def manage_test(self, REQUEST):
"""Test an SQL method.""" """Test an SQL method."""
# Try to render the query template first so that the rendered
src="Could not render the query template!" # source will be available for the error message in case some
# error occurs...
try: src=self(REQUEST, src__=1)
except: src="Could not render the query template!"
result=() result=()
t=v=tb=None t=v=tb=None
try: try:
......
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