Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(14)

Side by Side Diff: Doc/library/xmlrpc.client.rst

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/xdrlib.rst ('k') | Doc/library/zipimport.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`xmlrpc.client` --- XML-RPC client access 1 :mod:`xmlrpc.client` --- XML-RPC client access
2 ============================================== 2 ==============================================
3 3
4 .. module:: xmlrpc.client 4 .. module:: xmlrpc.client
5 :synopsis: XML-RPC client access. 5 :synopsis: XML-RPC client access.
6 .. moduleauthor:: Fredrik Lundh <fredrik@pythonware.com> 6 .. moduleauthor:: Fredrik Lundh <fredrik@pythonware.com>
7 .. sectionauthor:: Eric S. Raymond <esr@snark.thyrsus.com> 7 .. sectionauthor:: Eric S. Raymond <esr@snark.thyrsus.com>
8 8
9 9
10 .. XXX Not everything is documented yet. It might be good to describe 10 .. XXX Not everything is documented yet. It might be good to describe
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 ------------------- 129 -------------------
130 130
131 A :class:`ServerProxy` instance has a method corresponding to each remote 131 A :class:`ServerProxy` instance has a method corresponding to each remote
132 procedure call accepted by the XML-RPC server. Calling the method performs an 132 procedure call accepted by the XML-RPC server. Calling the method performs an
133 RPC, dispatched by both name and argument signature (e.g. the same method name 133 RPC, dispatched by both name and argument signature (e.g. the same method name
134 can be overloaded with multiple argument signatures). The RPC finishes by 134 can be overloaded with multiple argument signatures). The RPC finishes by
135 returning a value, which may be either returned data in a conformant type or a 135 returning a value, which may be either returned data in a conformant type or a
136 :class:`Fault` or :class:`ProtocolError` object indicating an error. 136 :class:`Fault` or :class:`ProtocolError` object indicating an error.
137 137
138 Servers that support the XML introspection API support some common methods 138 Servers that support the XML introspection API support some common methods
139 grouped under the reserved :attr:`system` attribute: 139 grouped under the reserved :attr:`system` member:
140 140
141 141
142 .. method:: ServerProxy.system.listMethods() 142 .. method:: ServerProxy.system.listMethods()
143 143
144 This method returns a list of strings, one for each (non-system) method 144 This method returns a list of strings, one for each (non-system) method
145 supported by the XML-RPC server. 145 supported by the XML-RPC server.
146 146
147 147
148 .. method:: ServerProxy.system.methodSignature(name) 148 .. method:: ServerProxy.system.methodSignature(name)
149 149
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 proxy = xmlrpc.client.ServerProxy("http://localhost:8000/") 303 proxy = xmlrpc.client.ServerProxy("http://localhost:8000/")
304 with open("fetched_python_logo.jpg", "wb") as handle: 304 with open("fetched_python_logo.jpg", "wb") as handle:
305 handle.write(proxy.python_logo().data) 305 handle.write(proxy.python_logo().data)
306 306
307 .. _fault-objects: 307 .. _fault-objects:
308 308
309 Fault Objects 309 Fault Objects
310 ------------- 310 -------------
311 311
312 A :class:`Fault` object encapsulates the content of an XML-RPC fault tag. Fault 312 A :class:`Fault` object encapsulates the content of an XML-RPC fault tag. Fault
313 objects have the following attributes: 313 objects have the following members:
314 314
315 315
316 .. attribute:: Fault.faultCode 316 .. attribute:: Fault.faultCode
317 317
318 A string indicating the fault type. 318 A string indicating the fault type.
319 319
320 320
321 .. attribute:: Fault.faultString 321 .. attribute:: Fault.faultString
322 322
323 A string containing a diagnostic message associated with the fault. 323 A string containing a diagnostic message associated with the fault.
(...skipping 28 matching lines...) Expand all
352 352
353 353
354 354
355 .. _protocol-error-objects: 355 .. _protocol-error-objects:
356 356
357 ProtocolError Objects 357 ProtocolError Objects
358 --------------------- 358 ---------------------
359 359
360 A :class:`ProtocolError` object describes a protocol error in the underlying 360 A :class:`ProtocolError` object describes a protocol error in the underlying
361 transport layer (such as a 404 'not found' error if the server named by the URI 361 transport layer (such as a 404 'not found' error if the server named by the URI
362 does not exist). It has the following attributes: 362 does not exist). It has the following members:
363 363
364 364
365 .. attribute:: ProtocolError.url 365 .. attribute:: ProtocolError.url
366 366
367 The URI or URL that triggered the error. 367 The URI or URL that triggered the error.
368 368
369 369
370 .. attribute:: ProtocolError.errcode 370 .. attribute:: ProtocolError.errcode
371 371
372 The error code. 372 The error code.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 server = xmlrpc.client.Server('http://time.xmlrpc.com/RPC2', transport=p) 527 server = xmlrpc.client.Server('http://time.xmlrpc.com/RPC2', transport=p)
528 print(server.currentTime.getCurrentTime()) 528 print(server.currentTime.getCurrentTime())
529 529
530 530
531 Example of Client and Server Usage 531 Example of Client and Server Usage
532 ---------------------------------- 532 ----------------------------------
533 533
534 See :ref:`simplexmlrpcserver-example`. 534 See :ref:`simplexmlrpcserver-example`.
535 535
536 536
OLDNEW
« no previous file with comments | « Doc/library/xdrlib.rst ('k') | Doc/library/zipimport.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+