Changes¶
0.8 (2016-10-31)¶
Drop Python 3.2 support.
Add Python 3.5 support.
AMF
Restore compatibility with later releases of PyAMF. See https://github.com/Pylons/pyramid_rpc/pull/43
0.7.2 (2015-11-17)¶
JSON-RPC
Fix a bug in batched requests where the Content-Length header was being copied to the subrequests, causing broken expectations as we were re-serializing the body with a larger length than the original request. See https://github.com/Pylons/pyramid_rpc/pull/41
0.7.1 (2015-09-14)¶
JSON-RPC
Fix a bug in request handling that could occur if an unknown method was requested. It was generating an internal error instead of a notfound-like response. See https://github.com/Pylons/pyramid_rpc/pull/40
0.7 (2015-08-11)¶
XML-RPC
Add support for overriding the renderer with extra options via the new
rendereroption onadd_xmlrpc_methodand thedefault_rendereroption onadd_xmlrpc_endpoint.
0.6.1 (2015-05-15)¶
Releasing is hard, and I missed it up. So now we have 0.6.1 with no changes from 0.6.
0.6 (2015-05-15)¶
Pyramid version compatibility
pyramid_rpc now requires Pyramid >= 1.4. (Version 0.5.3 will run on Pyramid >= 1.2, but will not run on Pyramid 1.1.x despite what setup.py indicates.)
Removed pre-1.4 backwards compatibility for custom predicates.
Tox configuration
Added Tox environments checking against older Pyramid versions.
JSON-RPC
Added support for batched JSON-RPC requests (on POST requests only) See https://github.com/Pylons/pyramid_rpc/pull/35
0.5.3 (2015-05-14)¶
XML-RPC, JSON-RPC
Fix deprecation warnings on versions of Pyramid >= 1.4 due to the usage of custom predicates.
0.5.2 (2013-10-01)¶
Features¶
XML-RPC
Add support for
_depthargument topyramid_rpc.xmlrpc.xmlrpc_method()to allow it to be used from within another decorator.
JSON-RPC
Add support for
_depthargument topyramid_rpc.jsonrpc.jsonrpc_method()to allow it to be used from within another decorator.
0.5.1 (2012-11-25)¶
Bug Fixes¶
XML-RPC
Fix an issue generating responses containing non-ascii characters.
0.5 (2012-11-08)¶
Features¶
JSON-RPC
Added support for JSON-RPC requests over HTTP GET. All version 2.0 parameters are required, but should be embedded in the query string.
The
renderercan now be overridden. This will allow any renderer to be used to convert a method’s results to a JSON-encoded string. Pyramid 1.4+ has a very flexible JSON renderer that will allow a custom serializer and adapters for custom data types (seepyramid.renderers.JSONfor more).Endpoints support
default_mapperanddefault_rendererwhich are propagated to all methods attached to the endpoint. Individual methods can override these values if necessary on a case-by-case basis.
XML-RPC
Endpoints support
default_mapperwhich is propagated to all methods attached to the endpoint. Individual methods can override this values if necessary on a case-by-case basis.
Backwards Incompatibilities¶
JSON-RPC
With HTTP GET support added, any existing installation will now allow JSON-RPC requests over GET. To disable this, add
request_method='POST'to your endpoint.Notification requests (
id == null) used to return a HTTP204 No Contentresponse. Now they return200 OKlike everything else, with an empty response.
0.4.1 (2012-10-27)¶
Features¶
Python 3 compatibility.
PyAMF is not Python 3 compatible, only JSON-RPC and XML-RPC are supported for now.
JSON-RPC
The
dataattribute ofpyramid_rpc.jsonrpc.JsonRpcErroris now encoded into the error response.
Backwards Incompatibilities¶
JSON-RPC
The default exception views are now registered with
pyramid.security.NO_PERMISSION_REQUIREDto ensure they are always invoked.
XML-RPC
Removed deprecated xmlrpc_view API.
The default exception views are now registered with
pyramid.security.NO_PERMISSION_REQUIREDto ensure they are always invoked.
0.3 (2011-08-30)¶
Features¶
XML-RPC
Deprecated the xmlrpc_view API in favor of a new API that supports more features expected from routes and views including the ability to set permissions on RPC methods, perform traversal, and a default view mapper.
JSON-RPC
Removed the unreleased JSON-RPC support that was in master.
Added a new API for JSON-RPC that supports more features expected from routes and views including the ability to set permissions on RPC methods, perform traversal, and a default view mapper.
Pyramid 1.1+ compatibility.