diff options
| author | Chris McDonough <chrism@plope.com> | 2011-01-19 22:00:43 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-01-19 22:00:43 -0500 |
| commit | 5f47801ae33d89a0ac87d9d227639d60aed23ff1 (patch) | |
| tree | 695b1fb6cb493a01af4a3e05ca1fda9f2674f166 | |
| parent | dd2944cca90c8cbb2f0733a04442d047100df383 (diff) | |
| download | pyramid-5f47801ae33d89a0ac87d9d227639d60aed23ff1.tar.gz pyramid-5f47801ae33d89a0ac87d9d227639d60aed23ff1.tar.bz2 pyramid-5f47801ae33d89a0ac87d9d227639d60aed23ff1.zip | |
- Using the ``pyramid.view.bfg_view`` alias for ``pyramid.view.view_config``
(a backwards compatibility shim) now issues a deprecation warning.
| -rw-r--r-- | CHANGES.txt | 6 | ||||
| -rw-r--r-- | TODO.txt | 2 | ||||
| -rw-r--r-- | pyramid/view.py | 7 |
3 files changed, 13 insertions, 2 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 416de00f9..8df963aac 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -18,6 +18,12 @@ Documentation - 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 --------------------------- @@ -22,8 +22,6 @@ Must-Have (before 1.0) - 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:: diff --git a/pyramid/view.py b/pyramid/view.py index 310e6d58f..10a0b7b60 100644 --- a/pyramid/view.py +++ b/pyramid/view.py @@ -13,6 +13,7 @@ if hasattr(mimetypes, 'init'): 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 @@ class view_config(object): 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 |
