[ZPT] zope3-dev proposal on changing implicitly calling

Barry Warsaw barry at python.org
Tue Jul 29 13:25:19 EDT 2003


On Tue, 2003-07-29 at 02:24, Steve Alexander wrote:

> > I've only been able to pay tangential attention to this thread, but...
> > how does this tie into the ability to call callables in the middle of a
> > path expression?   I /really/ want that!
> 
> We do that already in Zope 3. In Zope 3, Zope 3's traversal machinery 
> gets used to traverse path expressions. It is the responsibility for the 
> traversal adapter for a particular object to say how to traverse it, and 
> whether to call it.
> 
> The only problem comes with the last object from the path. TALES makes 
> the decision of whether to call or not, rather than Zope 3. For Zope 3, 
> this is inconsistent.

So in my particular application, which isn't Zope3 based, but does use
all of tal/tales/pagetemplates from Zope3, I'd need to write a new
traverser to get the behavior I want...?

-Barry





More information about the ZPT mailing list