Itai Tavor <[EMAIL PROTECTED]> wrote:

> Dieter Maurer wrote:
> >Itai Tavor writes:
> >  > P.S Now that aq_parent is working... why can't I do
> >  > absolute_url() on DTMLFiles :-(
> >"absolute_url" is provided by the class "OFS.Traverable".
> >Apparently, "DTMLFile" is not derived from it.
> >
> >
> >Dieter
> Well, obviously... the question is why nobody saw the need to add 
> Traversable to DTMLFiles...

DTMLFiles are supposed to function as *methods* of their classes;
methods *don't* have their own 'absolute_url', but return the url
of the object on which they are called.  DTMLMethods have exactly
the same semantics:

  <dtml-var absolute_url>

returns the folder/context object's URL, by design.

Tres Seaver                                [EMAIL PROTECTED]
Digital Creations     "Zope Dealers"

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to