26 Sep
2003
26 Sep
'03
4:43 p.m.
Evan Simpson wrote at 2003-9-25 15:07 -0500:
I would prefer the patch I submitted in #802, since it allows for multiple, independent post-traversal actions, and cannot be affected by name clashes in userspace. I admit that it's a bit harder to use than simply acquiring a callable, though.
http://collector.zope.org/Zope/802/view
The attached patch provides a post_traverse() method that can be used during publishing traversal. It allows an Access Rule (or similar) to register a callable object and arguments. Registered objects are called in the order in which they were registered just before traverse() completes.
I do not mind... Dieter