From 0d13f6596c2cf38a611183e01a7f73173d5d6faa Mon Sep 17 00:00:00 2001 From: Malthe Borch Date: Mon, 26 Oct 2009 12:27:34 +0000 Subject: The root factory may now return an object which implements ``ITraverser`` directly. In this case, no adaptation is done before traversal. This feature is added such that a routes factory can implement its own traversal logic without establishing an artificial context only to get a hook into the traversal machinery. --- docs/narr/hooks.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index d2020af0d..6babeace0 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -278,6 +278,9 @@ when the application :term:`root factory` returned an instance of the ``myapp.models.MyRoot`` object. Otherwise it would use the default :mod:`repoze.bfg` traverser to do traversal. +Note that the root object may itself implement ``ITraverser`` in which +case adaptation is skipped. + Example implementations of alternate traversers can be found "in the wild" within `repoze.bfg.traversalwrapper `_ and -- cgit v1.2.3