Re: [Zope] dtml method contents
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. > > > > > > > > Method'], search_sub=1)"> > > > &dtml.-id; (&dtml.-title_or_id;) > > > > > > > > > > > > > > > > > > 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 instead of > "document_src">? It seems the tag was not doing enough to stop the browser from rendering all the code. Replacing with has worked! Regards Garry > > > ___ > > > Zope maillist - Zope@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@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@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 )
Re: [Zope] dtml method contents
garry saddington wrote at 2007-8-30 15:46 +0100: >I found this method on Zopelabs to get the contents of all ZSQL methods. > >Method'], search_sub=1)"> > &dtml.-id; (&dtml.-title_or_id;) > > > > > >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. What is the "." in "&dtml.-"? In may memory, the "." where somewhere else (but I do not use DTML for a long time). Anyway: Use the "prefix" attribute of "dtml-in" and replace your "template" above with "_item". ATT: keep the "..." around; otherwise, the errors will stay. -- Dieter ___ Zope maillist - Zope@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 )
Re: [Zope] dtml method contents
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. > > > > > Method'], search_sub=1)"> > > &dtml.-id; (&dtml.-title_or_id;) > > > > > > > > > > > > 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 instead of "document_src">? Yes, same result I'm afraid. Garry > > > Regards > > Garry > > > > ___ > > Zope maillist - Zope@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@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 )
Re: [Zope] dtml method contents
garry saddington wrote: I found this method on Zopelabs to get the contents of all ZSQL methods. &dtml.-id; (&dtml.-title_or_id;) 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 instead of "document_src">? Regards Garry ___ Zope maillist - Zope@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 ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@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] dtml method contents
I found this method on Zopelabs to get the contents of all ZSQL methods. &dtml.-id; (&dtml.-title_or_id;) 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. Regards Garry ___ Zope maillist - Zope@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 )