[ZCM] [ZC] 1322/ 3 Resolve "ZSQL testing "

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Sun May 16 11:29:10 EDT 2004


Issue #1322 Update (Resolve) "ZSQL testing "
 Status Resolved, Zope/bug low
To followup, visit:
  http://collector.zope.org/Zope/1322

==============================================================
= Resolve - Entry #3 by ajung on May 16, 2004 11:29 am

 Status: Accepted => Resolved

Fixed on the 2.7 branch and SVN trunk.
________________________________________
= Assign - Entry #2 by ajung on May 14, 2004 1:03 am

 Status: Pending => Accepted

 Supporters added: ajung


________________________________________
= Request - Entry #1 by rjmunro on May 7, 2004 12:47 pm

When testing a Z SQL method, the SQL that was used is quoted back to you, after the DTML is processed. This SQL is not HTML quoted. The fix is quite simple, possibly something like the below.

*** DA.py       2003-12-04 21:57:38.000000000 +0000
--- /home/rjmunro/DA.py 2004-05-07 16:38:41.000000000 +0100
***************
*** 329,335 ****
                  '<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))

              report=apply(report,(self,REQUEST),{self.id:result})

--- 329,335 ----
                  '<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,html_quote(src)))

              report=apply(report,(self,REQUEST),{self.id:result})


==============================================================




More information about the Zope-Collector-Monitor mailing list