From acc7765a037983907d3275312396ee10b6b9ad2e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 30 Oct 2009 19:38:41 +0000 Subject: - The ``__call__`` of a plugin "traverser" implementation (registered as an adapter for ``ITraverser`` or ``ITraverserFactory``) will now receive a *request* as the single argument to its ``__call__`` method. In previous versions it was passed a WSGI ``environ`` object. The request object passed to the factory implements dictionary-like methods in such a way that existing traverser code which expects to be passed an environ will continue to work. - Fix docs. --- docs/narr/hybrid.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/narr/hybrid.rst') diff --git a/docs/narr/hybrid.rst b/docs/narr/hybrid.rst index 34f606a97..4ff5df493 100644 --- a/docs/narr/hybrid.rst +++ b/docs/narr/hybrid.rst @@ -138,7 +138,7 @@ looks like so: root = Traversable( {'a':Traversable({'b':Traversable({'c':Traversable({})})})}) - def root_factory(environ): + def root_factory(request): return root We've defined a bogus graph here that can be traversed, and a -- cgit v1.2.3