[Zope] DTML Documents vs. DHTM Methods
Johan Carlsson
johanc@torped.se
Tue, 20 Apr 1999 13:15:34 +0200
> >>> "Johan Carlsson" wrote
> > Where can I find a great explanation
> > of the difference between DTML Methods
> > and DTHL Documents?
>
> Don't know if the ZDP (zdp.zope.org) has covered this yet, but
> the short answer is:
>
> Documents can have Properties. Methods cannot.
>
> This means, for instance, that on certain documents, you could set
> a property 'isFooTypeDocument', and check for that elsewhere in your
> system. With methods, the only method-specific properties are the
> id and title, available as 'document_id' and 'document_title'.
>
I saw a earlier mail-tread that Method take arguments (obviously)
can a document take arguments as well?
What are the default arguments (not named) for Method and
Documents. (I've just learned about method_name(PARENTS[-1],REQUEST)
in the example for a SiteMap function)
Best Regards,
Johan Carlsson