Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

XML-RPC filter

Purpose

Converts XMLRPC to CherryPy2 object system and vice-versa.

PLEASE NOTE:

beforeRequestBody: Unmarshalls the posted data to a methodname and parameters.

  • These are stored in cherrypy.request.rpcMethod and .rpcParams
  • The method is also stored in cherrypy.request.path, so CP2 will find the right method to call for you, based on the root's position.

beforeFinalize: Marshalls cherrypy.response.body to xmlrpc.

  • Until resolved: cherrypy.response.body must be a python source string;this string is 'eval'ed to return the results. This will be resolved in the future. (Fixed in changeset 569)
  • Content-Type and Content-Length are set according to the new (marshalled) data.

Parameters

  • xmlRpcFilter.on:
    • Purpose: To enable or disable the filter
    • Value: True or False
    • Default: False
  • xmlRpcFilter.encoding:
    • Purpose: To specify the encoding used internally
    • Value: An existing encoding
    • Default: utf-8

Hosted by WebFaction

Log in as guest/cpguest to create tickets