diff options
| author | Chris McDonough <chrism@plope.com> | 2011-07-14 01:15:40 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-07-14 01:15:40 -0400 |
| commit | 100a571ebbbe7b9f7143ac6015a1b870191683d5 (patch) | |
| tree | 20cd4cc47ab3ad65b5419a39572c76b4f3ca8cff /docs | |
| parent | 56d0fe4a9f97daa4d5fd0c28ea83c6ef32856b3d (diff) | |
| download | pyramid-100a571ebbbe7b9f7143ac6015a1b870191683d5.tar.gz pyramid-100a571ebbbe7b9f7143ac6015a1b870191683d5.tar.bz2 pyramid-100a571ebbbe7b9f7143ac6015a1b870191683d5.zip | |
forgot to change whatsnew
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/whatsnew-1.1.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/whatsnew-1.1.rst b/docs/whatsnew-1.1.rst index 20b346090..845170831 100644 --- a/docs/whatsnew-1.1.rst +++ b/docs/whatsnew-1.1.rst @@ -251,6 +251,16 @@ Minor Feature Additions preprocessor to be specified as a Python callable or Python dotted name. See https://github.com/Pylons/pyramid/pull/183 for rationale. +- New API class: :class:`pyramid.static.static_view`. This supersedes the + (now deprecated) :class:`pyramid.view.static` class. + :class:`pyramid.static.static_view`, by default, serves up documents as the + result of the request's ``path_info``, attribute rather than it's + ``subpath`` attribute (the inverse was true of + :class:`pyramid.view.static`, and still is). + :class:`pyramid.static.static_view` exposes a ``use_subpath`` flag for use + when you don't want the static view to behave like the older deprecated + version. + Backwards Incompatibilities --------------------------- @@ -323,6 +333,11 @@ Deprecations and Behavior Differences and 2.6 show deprecation warnings by default, so this is unecessary there. All deprecation warnings are emitted to the console. +- The :class:`pyramid.view.static` class has been deprecated in favor of the + newer :class:`pyramid.static.static_view` class. A deprecation warning is + raised when it is used. You should replace it with a reference to + :class:`pyramid.static.static_view` with the ``use_subpath=True`` argument. + - The ``paster pshell``, ``paster proutes``, and ``paster pviews`` commands now take a single argument in the form ``/path/to/config.ini#sectionname`` rather than the previous 2-argument spelling ``/path/to/config.ini |
