[Zope-dev] How do I call an HTMLFile in context provided by a path
Tres Seaver
tseaver@digicool.com
Sat, 14 Apr 2001 00:46:52 -0400
Itai Tavor <itai@optusnet.com.au> 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 tseaver@digicool.com
Digital Creations "Zope Dealers" http://www.zope.org