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/request.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'repoze/bfg/request.py') 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) + -- cgit v1.2.3