[Zope] dtml method contents

garry saddington garry at schoolteachers.co.uk
Thu Aug 30 16:21:49 EDT 2007


On Thu, 2007-08-30 at 19:31 +0100, garry saddington wrote:
> On Thu, 2007-08-30 at 18:44 +0100, Peter Bengtsson wrote:
> > 
> > garry saddington wrote:
> > > I found this method on Zopelabs to get the contents of all ZSQL methods.
> > > 
> > > <dtml-in "ZopeFind(restrictedTraverse(['']), obj_metatypes=['DTML
> > > Method'], search_sub=1)">
> > >   <h2>&dtml.-id; (&dtml.-title_or_id;)</h2>
> > >   <p><i><dtml-var absolute_url></i></p>
> > >   <blockquote><pre><dtml-var "template"></pre></blockquote>
> > >  
> > > </dtml-in>
> > > 
> > > Is it possible to do the same with all dtml methods? I have tried
> > > replacing "template" with "document_src" but this gives a mixture of
> > > part rendered methods and error messages which is completely jumbled.
> > Have you tried <dtml-var "document_src()"> instead of <dtml-var 
> > "document_src">?
It seems the <pre> tag was not doing enough to stop the browser from
rendering all the code. Replacing with <xmp> has worked!
Regards
Garry
> > > _______________________________________________
> > > Zope maillist  -  Zope at zope.org
> > > http://mail.zope.org/mailman/listinfo/zope
> > > **   No cross posts or HTML encoding!  **
> > > (Related lists - 
> > >  http://mail.zope.org/mailman/listinfo/zope-announce
> > >  http://mail.zope.org/mailman/listinfo/zope-dev )
> > > 
> > 
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )



More information about the Zope mailing list