[Zope-dev] ZDebug Issues... Round II ;-)
Chris Withers
chrisw@nipltd.com
Wed, 20 Sep 2000 16:38:42 +0100
Hi Shane,
I dug up the mail :-)
Shane Hathaway wrote:
>
> Chris Withers wrote:
> > Using your sample 'bad' DTML, I got the same but the 'Contains name?'
> > column didn't show up :-(
> >
> > Any ideas? (yes, I was tracking down a security exception, and that
> > column may have been really useful ;-)
>
> My guess is you're using Zope 2.1.6. ZDebug doesn't have a way to
> figure out what DTML method is being called in Zope 2.1.6. Strange but
> true. So it shows what it can. The 2.2.x security context stack is
> used to figure it out in 2.2.x. (Which is still a hack. :-/ )
Sorry, but I was using either Zope 2.2.0 or 2.2.1 :-S
Has this been covered by other bugfixes?
> Oops! Try this patch (I left out a "%s"):
<snip patch>
I guess that made it into the new version of ZDebug?
Right, next up, it would be really useful if the error page could show a
dump of the REQUEST object. So I tried this patch:
--- dtmlexc.dtml Thu Sep 14 15:28:18 2000
+++ dtmlexc.dtml.new Thu Sep 14 15:26:59 2000
@@ -56,5 +56,9 @@
expr="source_info[2]" html_quote></pre>
</td></tr></table>
</dtml-if>
+<p><strong>REQUEST</strong></p>
+<table bgcolor="#cccccc"><tr><td>
+<dtml-var REQUEST>
+</td></tr></table>
</body>
</html>
Sadly, whenever this code gets called, Zope restarts! :-(
Any ideas? (this was all on Zope 2.2.0 and 2.2.1)
cheers,
Chris