[Zope3-dev] z.a.pagetemplate.engine and ITraverser

Fred Drake fdrake at gmail.com
Wed Aug 4 10:13:24 EDT 2004


On Wed, 04 Aug 2004 11:42:45 +0300, Steve Alexander <steve at z3u.com> wrote:
> ITALESTraversable was another option, because these traversal components
> are primarily used from TALES expressions.

True.  I think naming the interface for the concept rather than the
most common usage makes more sense though.  What's the most common
usage might change over time.

> Why are we calling them "IURLTraversable" and not "IURLTraverser" ?

As I read it, there are actually both.  The Traversable flavor handles
one segment at a time and can re-write the remainder of the names,
while the Traverser handles the whole complete path.  The Traverser
would use the Traversable adapters to do it's job (as
z.a.traversing.adapters.Traverser does now).

If these interfaces are split, we'd want both of these for each type
of traversal, so there'd actually be four interfaces instead of two.


  -Fred

-- 
Fred L. Drake, Jr.    <fdrake at gmail.com>
Zope Corporation


More information about the Zope3-dev mailing list