Version increment.
Change-Id: Idac278b53431988c6a3a3dfe89fcb4156f5574c1
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
---------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user