[Zope] [FEATURE REQUEST] comment at the top of DTML Methods and Documents

Andy McKay andym@ActiveState.com
Thu, 24 May 2001 14:00:46 -0700


> I think that putting an HTML comment at the top of DTML Methods and DTML
> Documents just like the one at the top of Python Scripts would be VERY
> useful. (at the bottom it would be useful too, I really don't care)

Sorry I disagree.

> This comment would just give the object meta-type and the preferred
> object id.

Whats a preferred object id, is that different to the objects actual id?

> There's a problem because it's impossible to differentiate a DTML
> Method from a DTML Document, because both are detected with the
> same mime type: text/html

Yes but you can access the object's type through its meta_type. I think the
problem is you're trying to solve the inability of a client tool, by
fiddling with some of the base parts of zope objects. Yes some changes can
be made to Zope, but really its the client that needs fixing. What next,
would you want the comment to include property x? Then you have to change
the comments. Then a new object comes along and has to use these comments.

All these properties on an object are already available through many
different protocols, use one of them to find out what you want rather than
repeating data on an object.

Your analogy of writing comments in python script doesnt make sense since I
can write comments in a dtml method or document using <dtml-comment>.

Perhaps you are asking for something else?

--
  Andy McKay