[Zope] TALES and Acquisition

Paul Winkler pw_lists@slinkp.com
Sun, 15 Dec 2002 12:54:50 -0800


On Sun, Dec 15, 2002 at 07:45:19PM +0000, Dan Fairs wrote:
> DTML. However, I have one question. Is it possible for TALES expressions
> to make use of acquisition? 

Yes.
 
> As a trivial example, say I have a script called getRoot in the root
> folder that returns the URL of where that script lives. Say also I have
> a folder off the root called MyFolder, which contains the following
> link:
> 
> <a href="Link"
>          tal:attributes="href container/getRoot">My Link Somewhere</a>
> 
> Now, I would intuitively have expected Zope to look in the container for
> getRoot (ie. MyFolder), fail to find it, and look in the parent folder,
> then execute it there. However - this doesn't happen.

"It doesn't work" is rarely adequate information for anyone to diagnose
a problem... what you describe *does* work when everything is
correctly in place. Spelling error perhaps?


-- 

Paul Winkler
http://www.slinkp.com
"Welcome to Muppet Labs, where the future is made - today!"