[Zope] url path remainder as a script parameter?

Dieter Maurer dieter at handshake.de
Sat Feb 26 14:06:06 EST 2005


Paul Winkler wrote at 2005-2-25 18:06 -0500:
>On Sat, Feb 26, 2005 at 11:49:18AM +1300, Phillip Hutchings wrote:
>> iirc, __before_publishing_traverse__ gets called after the inital
>> traversal has found the object, but before the publishing traverse (as
>> it says ;), 
>
>You know, I've never really understood that...

"__before_publishing_traverse__" is looking for nothing
and cannot return an object.
But it can modify the request and thereby change what
is looked for in the future.

"__bobo_traverse__" is looking for "name" and
it must return an object.

It, too, can modify the request and change what is looked
for in the future.
However, this is a bit dangerous, as "__bobo_traverse__"
(unlike __before_publishing_traverse__") is also
used by "Traversable.[un]restrictedTraverse" and
"Products.PageTemplateFile.Expressions.restrictedTraverse".

-- 
Dieter


More information about the Zope mailing list