[Zope] DTML Documents vs. Methods--Again? Yikes!

Paul Prescod paul@prescod.net
Fri, 27 Aug 1999 13:23:05 -0400


Michel Pelletier wrote:
> 
> Because the seperation of content and code is a handy thing.  Granted,
> you can put code in your content (DTML in a Document) and content in
> your code (stuff in a Method) but the two are there to help you
> seperate.  You can of course abuse this as much as you want.  Methods
> are useful when you want to write a highly dynamic component that uses
> the content found in it's context.  This is why they don't have
> properties, you don't want the methods own properties sneaking in on you
> and interfereing with what 'looks' like correct code.

To this newbie they sound like "DTML Macros". Python methods don't
automatically inherit properties from the containing object.

 Paul Prescod