From 896fc63701dfd373ded67daf6462d9e34594dbfb Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Thu, 26 Jun 2014 16:48:11 -0400 Subject: Version increment. Change-Id: Idac278b53431988c6a3a3dfe89fcb4156f5574c1 --- docs/source/changes.rst | 25 +++++++++++++++++++++++++ docs/source/hooks.rst | 2 ++ setup.py | 2 +- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/docs/source/changes.rst b/docs/source/changes.rst index 75f22ec..3b01d0e 100644 --- a/docs/source/changes.rst +++ b/docs/source/changes.rst @@ -1,3 +1,28 @@ +0.6.0 +===== +* Added support for disabling the `pecan.request` and `pecan.response` + threadlocals at the WSGI application level in favor of explicit reference + passing. For more information, see :ref:`contextlocals`. +* Added better support for hook composition via subclassing and mixins. For + more information, see :ref:`attaching_hooks`. +* Added support for specifying custom request and response implementations at + the WSGI application level for people who want to extend the functionality + provided by the base classes in `webob`. +* Pecan controllers may now return an explicit `webob.Response` instance to + short-circuit Pecan's template rendering and serialization. +* For generic methods that return HTTP 405, pecan now generates an `Allow` + header to communicate acceptable methods to the client. +* Fixed a bug in adherence to RFC2616: if an exposed method returns no response + body (or namespace), pecan will now enforce an HTTP 204 response (instead of + HTTP 200). +* Fixed a bug in adherence to RFC2616: when pecan responds with HTTP 204 or + HTTP 304, the `Content-Type` header is automatically stripped (because these + types of HTTP responses do not contain body content). +* Fixed a bug: now when clients request JSON via an `Accept` header, `webob` + HTTP exceptions are serialized as JSON, not their native HTML representation. +* Fixed a bug that broke applications which specified `default_renderer + = json`. + 0.5.0 ===== * This release adds formal support for pypy. diff --git a/docs/source/hooks.rst b/docs/source/hooks.rst index 18a530f..1cdb4ef 100644 --- a/docs/source/hooks.rst +++ b/docs/source/hooks.rst @@ -87,6 +87,8 @@ no furthur :func:`~pecan.hooks.PecanHook.on_error` hooks will be executed:: if isinstance(exc, SomeExceptionType): return webob.Response('Custom Error!', status=500) +.. _attaching_hooks: + Attaching Hooks --------------- diff --git a/setup.py b/setup.py index 02cbc6b..c39dab3 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import platform from setuptools import setup, find_packages -version = '0.5.0' +version = '0.6.0' # # determine requirements -- cgit v1.2.1