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.
-- 
===============================================================
Tres Seaver                                [EMAIL PROTECTED]
Digital Creations     "Zope Dealers"       http://www.zope.org

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to