From 98ea383b580b77a2ff8cd81743ad0f0d90574547 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 4 Nov 2009 05:39:49 +0000 Subject: - The ``bfgshell`` command did not function properly; it was still expecting to be able to call the root factory with a bare ``environ`` rather than a request object. - The ``repoze.bfg.scripting.get_app`` function now expects a ``request`` object as its second argument rather than an ``environ``. --- repoze/bfg/traversal.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'repoze/bfg/traversal.py') diff --git a/repoze/bfg/traversal.py b/repoze/bfg/traversal.py index 6eda82a92..325e41e4b 100644 --- a/repoze/bfg/traversal.py +++ b/repoze/bfg/traversal.py @@ -14,6 +14,7 @@ from repoze.bfg.interfaces import VH_ROOT_KEY from repoze.bfg.location import lineage from repoze.bfg.encode import url_quote +from repoze.bfg.request import FakeRequest def find_root(model): """ Find the root node in the graph to which ``model`` @@ -631,8 +632,3 @@ class TraversalContextURL(object): def _join_path_tuple(tuple): return tuple and '/'.join([quote_path_segment(x) for x in tuple]) or '/' -class FakeRequest(dict): - def __init__(self, environ): - self.environ = environ - self.update(environ) - -- cgit v1.2.3