Chris McDonough
2011-01-20 5f47801ae33d89a0ac87d9d227639d60aed23ff1
- Using the ``pyramid.view.bfg_view`` alias for ``pyramid.view.view_config``
(a backwards compatibility shim) now issues a deprecation warning.
3 files modified
15 ■■■■ changed files
CHANGES.txt 6 ●●●●● patch | view | raw | blame | history
TODO.txt 2 ●●●●● patch | view | raw | blame | history
pyramid/view.py 7 ●●●●● patch | view | raw | blame | history
CHANGES.txt
@@ -18,6 +18,12 @@
- Fix deprecated example showing ``chameleon_zpt`` API call in testing
  narrative chapter.
Deprecations
-------------
- Using the ``pyramid.view.bfg_view`` alias for ``pyramid.view.view_config``
  (a backwards compatibility shim) now issues a deprecation warning.
Backwards Incompatibilities
---------------------------
TODO.txt
@@ -22,8 +22,6 @@
- Add docs for ``route_path`` and ``route_url``, etc to Request API docs (see
  also https://github.com/Pylons/pyramid/issues#issue/19).
- Deprecate ``@bfg_view``.
- Reversing (context, request) in function view callable arglist produces
  incomprehensible traceback::
pyramid/view.py
@@ -13,6 +13,7 @@
import venusian
from zope.interface import providedBy
from zope.deprecation import deprecated
from pyramid.interfaces import IRoutesMapper
from pyramid.interfaces import IView
@@ -415,6 +416,12 @@
bfg_view = view_config # permanent b/c
deprecated(
    'bfg_view',
    'pyramid.view.bfg_view is deprecated as of Pyramid 1.0.  Use '
    'pyramid.view.view_config instead (API-compat, simple '
    'rename).')
def default_exceptionresponse_view(context, request):
    if not isinstance(context, Exception):
        # backwards compat for an exception response view registered via