On the lowest level a DTML Document has a meaning of self whilst a Method doesnt. What that means is a DTML Document has properties, a Method does not. This also means when using a mehtod calling say "objectIds()" or dtml-tree, it is called on the folder. However a Document calls it on itself, often returning nothing. We have a general rule: use a Document for a page, a Method for a snippet. Cheers. -- Andy McKay. ----- Original Message ----- From: "Jason C. Leach" <jleach@mail.ocis.net> To: <zope@zope.org> Sent: Monday, June 04, 2001 10:32 AM Subject: [Zope] Method vs. Doc.
hi,
What's the difference between a DTML method and DTML document. And what is the difference in the handling that zope does to them?
Thanks, j.
...................... ..... Jason C. Leach ... University College of the Cariboo. ..
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )