summaryrefslogtreecommitdiff
path: root/repoze/bfg/traversal.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-11-04 05:39:49 +0000
committerChris McDonough <chrism@agendaless.com>2009-11-04 05:39:49 +0000
commit98ea383b580b77a2ff8cd81743ad0f0d90574547 (patch)
tree56d1d13ea1339fccffbcbba29224cd701ee6f6ee /repoze/bfg/traversal.py
parentc9b04a01e0b8f23b86d30e9ae1403a2964c34faa (diff)
downloadpyramid-98ea383b580b77a2ff8cd81743ad0f0d90574547.tar.gz
pyramid-98ea383b580b77a2ff8cd81743ad0f0d90574547.tar.bz2
pyramid-98ea383b580b77a2ff8cd81743ad0f0d90574547.zip
- 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``.
Diffstat (limited to 'repoze/bfg/traversal.py')
-rw-r--r--repoze/bfg/traversal.py6
1 files changed, 1 insertions, 5 deletions
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)
-