summaryrefslogtreecommitdiff
path: root/repoze/bfg/request.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/request.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/request.py')
-rw-r--r--repoze/bfg/request.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/repoze/bfg/request.py b/repoze/bfg/request.py
index 2d799e15c..080ececc9 100644
--- a/repoze/bfg/request.py
+++ b/repoze/bfg/request.py
@@ -93,3 +93,9 @@ deprecated('get_request',
'``repoze.bfg.request`` is '
'deprecated. Use ``from repoze.bfg.threadlocal import '
'get_current_request instead.')
+
+class FakeRequest(dict):
+ def __init__(self, environ):
+ self.environ = environ
+ self.update(environ)
+