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