From 8cfe7068783a3520aa3bc09f260502d002e9ac60 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 25 Jan 2009 20:52:35 +0000 Subject: - The ``repoze.bfg.urldispatch.RoutesRootFactory`` now injects the ``wsgiorg.routing_args`` environment variable into the environ when a route matches. This is a tuple of ((), routing_args) where routing_args is the value that comes back from the routes mapper match (the "match dict"). - The ``repoze.bfg.traversal.RoutesModelTraverser`` class now wants to obtain the ``view_name`` and ``subpath`` from the ``wsgiorgs.routing_args`` environment variable. It falls back to obtaining these from the context for backwards compatibility. --- repoze/bfg/urldispatch.py | 1 + 1 file changed, 1 insertion(+) (limited to 'repoze/bfg/urldispatch.py') diff --git a/repoze/bfg/urldispatch.py b/repoze/bfg/urldispatch.py index f1470cd25..0c71c6e74 100644 --- a/repoze/bfg/urldispatch.py +++ b/repoze/bfg/urldispatch.py @@ -177,6 +177,7 @@ class RoutesRootFactory(Mapper): k = k.encode('utf-8') kw[k] = v context = factory(**kw) + environ['wsgiorg.routing_args'] = ((), kw) provides = route._provides for iface in provides: alsoProvides(context, iface) -- cgit v1.2.3