Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions Doc/library/xmlrpc.server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ servers written in Python. Servers can either be free standing, using
will turn off logging. The *allow_none* and *encoding* parameters are passed
on to :mod:`xmlrpc.client` and control the XML-RPC responses that will be returned
from the server. The *bind_and_activate* parameter controls whether
:meth:`server_bind` and :meth:`server_activate` are called immediately by the
:meth:`~socketserver.BaseServer.server_bind` and
:meth:`~socketserver.BaseServer.server_activate` are called immediately by the
constructor; it defaults to true. Setting it to false allows code to manipulate
the *allow_reuse_address* class variable before the address is bound.
The *use_builtin_types* parameter is passed to the
Expand Down Expand Up @@ -96,17 +97,17 @@ alone XML-RPC servers.

Register an object which is used to expose method names which have not been
registered using :meth:`register_function`. If *instance* contains a
:meth:`_dispatch` method, it is called with the requested method name and the
:meth:`!_dispatch` method, it is called with the requested method name and the
parameters from the request. Its API is ``def _dispatch(self, method, params)``
(note that *params* does not represent a variable argument list). If it calls
an underlying function to perform its task, that function is called as
``func(*params)``, expanding the parameter list. The return value from
:meth:`_dispatch` is returned to the client as the result. If *instance* does
not have a :meth:`_dispatch` method, it is searched for an attribute matching
:meth:`!_dispatch` is returned to the client as the result. If *instance* does
not have a :meth:`!_dispatch` method, it is searched for an attribute matching
the name of the requested method.

If the optional *allow_dotted_names* argument is true and the instance does not
have a :meth:`_dispatch` method, then if the requested method name contains
have a :meth:`!_dispatch` method, then if the requested method name contains
periods, each component of the method name is searched for individually, with
the effect that a simple hierarchical search is performed. The value found from
this search is then called with the parameters from the request, and the return
Expand Down Expand Up @@ -189,7 +190,7 @@ server::
# Print list of available methods
print(s.system.listMethods())

:meth:`register_function` can also be used as a decorator. The previous server
:meth:`SimpleXMLRPCServer.register_function` can also be used as a decorator. The previous server
example can register functions in a decorator way::

from xmlrpc.server import SimpleXMLRPCServer
Expand Down Expand Up @@ -310,9 +311,9 @@ requests sent to Python CGI scripts.

Register an object which is used to expose method names which have not been
registered using :meth:`register_function`. If instance contains a
:meth:`_dispatch` method, it is called with the requested method name and the
:meth:`!_dispatch` method, it is called with the requested method name and the
parameters from the request; the return value is returned to the client as the
result. If instance does not have a :meth:`_dispatch` method, it is searched
result. If instance does not have a :meth:`!_dispatch` method, it is searched
for an attribute matching the name of the requested method; if the requested
method name contains periods, each component of the method name is searched for
individually, with the effect that a simple hierarchical search is performed.
Expand Down
1 change: 0 additions & 1 deletion Doc/tools/.nitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ Doc/library/wsgiref.rst
Doc/library/xml.dom.minidom.rst
Doc/library/xml.sax.reader.rst
Doc/library/xml.sax.rst
Doc/library/xmlrpc.server.rst
Loading