11 Sep
2003
11 Sep
'03
4:33 p.m.
Tobias Herp wrote:
thanks for answering. I hoped to avoid the AccessRule thing and have a solution inside my portal product
This is actually very easy! The BeforeTraverse machinery will call a '__before_publishing_traverse__' method defined in an object's class, even if the object has AccessRules or other contents that use this hook. Example: class MyClass: ...stuff... def __before_publishing_traverse__(self, request): # Do something with the request, such as fool with # request['TraversalRequestNameStack']. # The return value doesn't matter. Cheers, Evan @ 4-am