[Zope] Re: Constructing 'Friendly' URLs in products

Paul Winkler pw_lists at slinkp.com
Thu Dec 2 12:13:12 EST 2004


On Thu, Dec 02, 2004 at 10:38:20AM -0500, Tres Seaver wrote:
> __getitem__ is actually simpler than __bobo_traverse__;  I have often 
> started with __bobo_traverse__, because I thought I needed it, and ended 
> up rerwriting as __getitem__.

Good point, I tend to forget that too.
Also as another respondent noted, you could solve the problem in
a quick-and-dirty way by having the top-level traversed item be
a Script that returns the Right Thing based on its
traverse_subpath.

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope mailing list