summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.txt12
-rw-r--r--docs/whatsnew-1.1.rst15
2 files changed, 21 insertions, 6 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index d898c5ca6..f1c153f3f 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -9,12 +9,12 @@ Features
https://github.com/Pylons/pyramid/pull/234.
- New API class: ``pyramid.static.static_view``. This supersedes the
- deprecated ``pyramid.view.static`` class. ``pyramid.satic.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
- ``pyramid.view.static``, and still is). ``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.
+ deprecated ``pyramid.view.static`` 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 ``pyramid.view.static``, and still is).
+ ``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.
Deprecations
------------
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