From 6ecdbc409d2109a9e7fc5367c64067f0400f07cc Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 22 Jun 2009 00:12:45 +0000 Subject: - Adding ``*path_info`` to a route no longer changes the PATH_INFO for a request that matches using URL dispatch. This feature was only there to service the ``repoze.bfg.wsgi.wsgiapp2`` decorator and it did it wrong; use ``*subpath`` instead now. - The interface generation performed for named request factories had the wrong base classes. --- repoze/bfg/traversal.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'repoze/bfg/traversal.py') diff --git a/repoze/bfg/traversal.py b/repoze/bfg/traversal.py index 576679853..16ab7c9f4 100644 --- a/repoze/bfg/traversal.py +++ b/repoze/bfg/traversal.py @@ -496,10 +496,11 @@ class ModelGraphTraverser(object): if 'bfg.routes.matchdict' in environ: matchdict = environ['bfg.routes.matchdict'] path = matchdict.get('traverse', '/') - subpath = filter(None, matchdict.get('subpath', '').split('/')) + subpath = matchdict.get('subpath', '') + subpath = tuple(filter(None, subpath.split('/'))) else: # this request did not match a Routes route - subpath = [] + subpath = () try: path = environ['PATH_INFO'] except KeyError: @@ -514,7 +515,7 @@ class ModelGraphTraverser(object): vroot_idx = len(vroot_path) path = vroot_path_string + path - path = list(traversal_path(path)) + path = traversal_path(path) traversed = [] -- cgit v1.2.3