diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-10-31 13:49:36 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-10-31 13:49:36 (GMT) |
commit | 45394c281d09de67e16be0d56ff04ddb5b6f6011 (patch) | |
tree | 15f9733b6837457db4d325cade56d84abd254937 /Doc | |
parent | f9b08b8e609916f970dc5ba2e41c9dbe1897240a (diff) | |
download | cpython-45394c281d09de67e16be0d56ff04ddb5b6f6011.zip cpython-45394c281d09de67e16be0d56ff04ddb5b6f6011.tar.gz cpython-45394c281d09de67e16be0d56ff04ddb5b6f6011.tar.bz2 |
Patch #531629: Add multicall support.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libxmlrpclib.tex | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Doc/lib/libxmlrpclib.tex b/Doc/lib/libxmlrpclib.tex index f420f25..a285c16 100644 --- a/Doc/lib/libxmlrpclib.tex +++ b/Doc/lib/libxmlrpclib.tex @@ -252,6 +252,35 @@ A string containing the headers of the HTTP/HTTPS request that triggered the error. \end{memberdesc} +\subsection{MultiCall Objects} + +\versionadded{2.4} + +In \url{http://www.xmlrpc.com/discuss/msgReader\$1208}, an approach +is presented to encapsulate multiple calls to a remote server into +a single request. + +\begin{classdesc}{MultiCall}{server} + +Create an object used to boxcar method calls. \var{server} is the +eventual target of the call. Calls can be made to the result object, +but they will immediately return \var{None}, and only store the +call name and parameters in the \class{MultiCall} object. Calling +the object itself causes all stored calls to be transmitted as +a single \code{system.multicall} request. The result of this call +is a generator; iterating over this generator yields the individual +results. + +\end{classdesc} + +A usage example of this class is + +\begin{verbatim} +multicall = MultiCall(server_proxy) +multicall.add(2,3) +multicall.get_address("Guido") +add_result, address = multicall() +\end{verbatim} \subsection{Convenience Functions} |