[Zope] Re: help with __bobo_traverse__

Chris Withers chris at simplistix.co.uk
Mon May 31 05:46:06 EDT 2004


Mohamed Lrhazi wrote:
>> BTW: Why can't you simply use traverse_subpath?
>>
> Never heard of it :)

It's what you SHOULD be using rather than fussing with traversal hooks, 
especially if you'rea newbie.

Both ZPT's and Script(Python)'s have a traverse_subpath variable in their 
namespace, so for example:

http://www.example.com/my_ps_or_zpt/1/2/3

...will give you:

print traverse_subpath
['1','2','3']

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope mailing list