One of two TraversalHooks provided by ZPublisher
If defined, it is called at the start of a traversal step. It is defined when the step's current object has such an attribute. The attribute will be called with two arguments, the current object and the request object. Its return value is discarded, thus only its side effects are essential. Usually, it will modify the request object. The modification may be as simple as defining additional parameters or providing defaults. However, the request object also provides methods that change the path segments still to be traversed. Therefore, the hook can drastically change the traversal. This is used for example to implement virtual hosting or to facilitate internationalization. Products that use this hook are for example SiteAccess2?? (for virtual hosting) and Localizer (a localization tool).
- http://mail.zope.org/pipermail/zope/2003-May/136152.html - Data.fs corruption, __before_publishing_traverse__ and POSKeyError?
- Freshly copied Data.fs from former standalone zope server to zeo var - AttributeError?: __before_publishing_traverse__