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. ..
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 )
hi, So if I wanted to include a bit of code, do it as a Method? j. ...................... ..... Jason C. Leach ... University College of the Cariboo. .. On Mon, 4 Jun 2001, Andy McKay wrote:
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 )
If you are anything like me you will probably never use dtml documents for anything. regards Max M Max M. W. Rasmussen, Denmark. New Media Director private: maxmcorp@worldonline.dk work: maxm@normik.dk ----------------------------------------------------- Shipping software is an unnatural act
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Jason C. Leach
So if I wanted to include a bit of code, do it as a Method?
Yeah. A doc would work, but its usually best to do the bit of code of a method. I find it makes life easier later as well when you are looking through a bunch of objects to help differentiate whats what. -- Andy McKay. ----- Original Message ----- From: "Jason C. Leach" <jleach@mail.ocis.net> To: "Andy McKay" <andym@activestate.com> Cc: <zope@zope.org> Sent: Monday, June 04, 2001 10:58 AM Subject: Re: [Zope] Method vs. Doc.
hi,
So if I wanted to include a bit of code, do it as a Method?
j.
...................... ..... Jason C. Leach ... University College of the Cariboo. ..
On Mon, 4 Jun 2001, Andy McKay wrote:
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 )
_______________________________________________ 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 )
participants (3)
-
Andy McKay -
Jason C. Leach -
Max M