Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / amd64 / html / python / lib / node559.html
CommitLineData
920dae64
AT
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<link rel="STYLESHEET" href="lib.css" type='text/css' />
5<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
6<link rel='start' href='../index.html' title='Python Documentation Index' />
7<link rel="first" href="lib.html" title='Python Library Reference' />
8<link rel='contents' href='contents.html' title="Contents" />
9<link rel='index' href='genindex.html' title='Index' />
10<link rel='last' href='about.html' title='About this document...' />
11<link rel='help' href='about.html' title='About this document...' />
12<link rel="next" href="node560.html" />
13<link rel="prev" href="protocol-error-objects.html" />
14<link rel="parent" href="module-xmlrpclib.html" />
15<link rel="next" href="node560.html" />
16<meta name='aesop' content='information' />
17<title>11.22.7 MultiCall Objects</title>
18</head>
19<body>
20<DIV CLASS="navigation">
21<div id='top-navigation-panel' xml:id='top-navigation-panel'>
22<table align="center" width="100%" cellpadding="0" cellspacing="2">
23<tr>
24<td class='online-navigation'><a rel="prev" title="11.22.6 ProtocolError Objects"
25 href="protocol-error-objects.html"><img src='../icons/previous.png'
26 border='0' height='32' alt='Previous Page' width='32' /></A></td>
27<td class='online-navigation'><a rel="parent" title="11.22 xmlrpclib "
28 href="module-xmlrpclib.html"><img src='../icons/up.png'
29 border='0' height='32' alt='Up One Level' width='32' /></A></td>
30<td class='online-navigation'><a rel="next" title="11.22.8 Convenience Functions"
31 href="node560.html"><img src='../icons/next.png'
32 border='0' height='32' alt='Next Page' width='32' /></A></td>
33<td align="center" width="100%">Python Library Reference</td>
34<td class='online-navigation'><a rel="contents" title="Table of Contents"
35 href="contents.html"><img src='../icons/contents.png'
36 border='0' height='32' alt='Contents' width='32' /></A></td>
37<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
38 border='0' height='32' alt='Module Index' width='32' /></a></td>
39<td class='online-navigation'><a rel="index" title="Index"
40 href="genindex.html"><img src='../icons/index.png'
41 border='0' height='32' alt='Index' width='32' /></A></td>
42</tr></table>
43<div class='online-navigation'>
44<b class="navlabel">Previous:</b>
45<a class="sectref" rel="prev" href="protocol-error-objects.html">11.22.6 ProtocolError Objects</A>
46<b class="navlabel">Up:</b>
47<a class="sectref" rel="parent" href="module-xmlrpclib.html">11.22 xmlrpclib </A>
48<b class="navlabel">Next:</b>
49<a class="sectref" rel="next" href="node560.html">11.22.8 Convenience Functions</A>
50</div>
51<hr /></div>
52</DIV>
53<!--End of Navigation Panel-->
54
55<H2><A NAME="SECTION00132270000000000000000">
5611.22.7 MultiCall Objects</A>
57</H2>
58
59<P>
60
61<span class="versionnote">New in version 2.4.</span>
62
63<P>
64In <a class="url" href="http://www.xmlrpc.com/discuss/msgReader%241208">http://www.xmlrpc.com/discuss/msgReader%241208</a>, an approach
65is presented to encapsulate multiple calls to a remote server into a
66single request.
67
68<P>
69<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
70 <td><nobr><b><span class="typelabel">class</span>&nbsp;<tt id='l2h-3714' xml:id='l2h-3714' class="class">MultiCall</tt></b>(</nobr></td>
71 <td><var>server</var>)</td></tr></table></dt>
72<dd>
73
74<P>
75Create an object used to boxcar method calls. <var>server</var> is the
76eventual target of the call. Calls can be made to the result object,
77but they will immediately return <var>None</var>, and only store the
78call name and parameters in the <tt class="class">MultiCall</tt> object. Calling
79the object itself causes all stored calls to be transmitted as
80a single <code>system.multicall</code> request. The result of this call
81is a generator; iterating over this generator yields the individual
82results.
83
84<P>
85</dl>
86
87<P>
88A usage example of this class is
89
90<P>
91<div class="verbatim"><pre>
92multicall = MultiCall(server_proxy)
93multicall.add(2,3)
94multicall.get_address("Guido")
95add_result, address = multicall()
96</pre></div>
97
98<P>
99
100<DIV CLASS="navigation">
101<div class='online-navigation'>
102<p></p><hr />
103<table align="center" width="100%" cellpadding="0" cellspacing="2">
104<tr>
105<td class='online-navigation'><a rel="prev" title="11.22.6 ProtocolError Objects"
106 href="protocol-error-objects.html"><img src='../icons/previous.png'
107 border='0' height='32' alt='Previous Page' width='32' /></A></td>
108<td class='online-navigation'><a rel="parent" title="11.22 xmlrpclib "
109 href="module-xmlrpclib.html"><img src='../icons/up.png'
110 border='0' height='32' alt='Up One Level' width='32' /></A></td>
111<td class='online-navigation'><a rel="next" title="11.22.8 Convenience Functions"
112 href="node560.html"><img src='../icons/next.png'
113 border='0' height='32' alt='Next Page' width='32' /></A></td>
114<td align="center" width="100%">Python Library Reference</td>
115<td class='online-navigation'><a rel="contents" title="Table of Contents"
116 href="contents.html"><img src='../icons/contents.png'
117 border='0' height='32' alt='Contents' width='32' /></A></td>
118<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
119 border='0' height='32' alt='Module Index' width='32' /></a></td>
120<td class='online-navigation'><a rel="index" title="Index"
121 href="genindex.html"><img src='../icons/index.png'
122 border='0' height='32' alt='Index' width='32' /></A></td>
123</tr></table>
124<div class='online-navigation'>
125<b class="navlabel">Previous:</b>
126<a class="sectref" rel="prev" href="protocol-error-objects.html">11.22.6 ProtocolError Objects</A>
127<b class="navlabel">Up:</b>
128<a class="sectref" rel="parent" href="module-xmlrpclib.html">11.22 xmlrpclib </A>
129<b class="navlabel">Next:</b>
130<a class="sectref" rel="next" href="node560.html">11.22.8 Convenience Functions</A>
131</div>
132</div>
133<hr />
134<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
135</DIV>
136<!--End of Navigation Panel-->
137<ADDRESS>
138See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
139</ADDRESS>
140</BODY>
141</HTML>