[Zope-Checkins] CVS: Zope/lib/python/Shared/DC/ZRDB - DA.py:1.110.12.7

Andreas Jung andreas at andreas-jung.com
Sun May 16 11:17:32 EDT 2004


Update of /cvs-repository/Zope/lib/python/Shared/DC/ZRDB
In directory cvs.zope.org:/tmp/cvs-serv16455/Shared/DC/ZRDB

Modified Files:
      Tag: Zope-2_7-branch
	DA.py 
Log Message:
#collector 1322: better debugging: html-quoting SQL statement


=== Zope/lib/python/Shared/DC/ZRDB/DA.py 1.110.12.6 => 1.110.12.7 ===
--- Zope/lib/python/Shared/DC/ZRDB/DA.py:1.110.12.6	Thu Apr 29 16:01:49 2004
+++ Zope/lib/python/Shared/DC/ZRDB/DA.py	Sun May 16 11:17:30 2004
@@ -24,6 +24,7 @@
 import sys, Globals, OFS.SimpleItem, AccessControl.Role
 from string import atoi, find, join, split, rstrip
 import DocumentTemplate, sqlvar, sqltest, sqlgroup
+from DocumentTemplate.html_quote import html_quote
 from time import time
 from zlib import compress, decompress
 from DateTime.DateTime import DateTime
@@ -331,7 +332,7 @@
                 '<dtml-var manage_tabs>\n<hr>\n%s\n\n'
                 '<hr><strong>SQL used:</strong><br>\n<pre>\n%s\n</pre>\n<hr>\n'
                 '</body></html>'
-                % (r,src))
+                % (r, html_quote(src)))
 
             report=apply(report,(self,REQUEST),{self.id:result})
 




More information about the Zope-Checkins mailing list