Chris McDonough
2011-04-27 f426e51a98a85ab55545bd836f31d8731cc14cfe
refs
author Chris McDonough <chrism@plope.com>
Wednesday, April 27, 2011 23:18 +0200
committer Chris McDonough <chrism@plope.com>
Wednesday, April 27, 2011 23:18 +0200
commitf426e51a98a85ab55545bd836f31d8731cc14cfe
tree 773b7822fbcc87068256355cdf5b5f76c2465033 tree | zip | gz
parent bca03fcb8df46485d722156da4f2f7685f234ab8 view | diff
- Passing an ``environ`` dictionary to the ``__call__`` method of a
"traverser" (e.g. an object that implements
``pyramid.interfaces.ITraverser`` such as an instance of
``pyramid.traversal.ResourceTreeTraverser``) as its ``request`` argument
now causes a deprecation warning to be emitted. Consumer code should pass a
``request`` object instead. The fact that passing an environ dict is
permitted has been documentation-deprecated since ``repoze.bfg`` 1.1, and
this capability will be removed entirely in a future version.

- The following (undocumented, dictionary-like) methods of the
``pyramid.request.Request`` object have been deprecated: ``__contains__``,
``__delitem__``, ``__getitem__``, ``__iter__``, ``__setitem__``, ``get``,
``has_key``, ``items``, ``iteritems``, ``itervalues``, ``keys``, ``pop``,
``popitem``, ``setdefault``, ``update``, and ``values``. Usage of any of
these methods will cause a deprecation warning to be emitted. These
methods were added for internal compatibility in ``repoze.bfg`` 1.1 (code
that currently expects a request object expected an environ object in BFG
1.0 and before). In a future version, these methods will be removed
entirely.
9 files modified
391 ■■■■■ changed files
CHANGES.txt 20 ●●●●● diff | view | raw | blame | history
pyramid/config.py 2 ●●● diff | view | raw | blame | history
pyramid/interfaces.py 27 ●●●● diff | view | raw | blame | history
pyramid/request.py 25 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_config.py 12 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_request.py 216 ●●●● diff | view | raw | blame | history
pyramid/tests/test_testing.py 10 ●●●● diff | view | raw | blame | history
pyramid/tests/test_traversal.py 74 ●●●● diff | view | raw | blame | history
pyramid/traversal.py 5 ●●●●● diff | view | raw | blame | history