[Python-checkins] CVS: python/dist/src/Doc/lib libxmlrpclib.tex,1.6,1.7
Skip Montanaro
montanaro@users.sourceforge.net
Thu, 14 Mar 2002 09:35:28 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv25523
Modified Files:
libxmlrpclib.tex
Log Message:
update text to refer to ServerProxy class in preference to Server, which is
only retained for backward compatibility with older versions of the library.
Index: libxmlrpclib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libxmlrpclib.tex,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** libxmlrpclib.tex 8 Mar 2002 17:46:02 -0000 1.6
--- libxmlrpclib.tex 14 Mar 2002 17:35:25 -0000 1.7
***************
*** 18,24 ****
objects and XML on the wire.
! \begin{classdesc}{Server}{uri\optional{, transport\optional{,
! encoding\optional{, verbose}}}}
! A \class{Server} instance is a server proxy that manages communication
with a remote XML-RPC server. The required first argument is a URI
(Uniform Resource Indicator), and will normally be the URL of the
--- 18,24 ----
objects and XML on the wire.
! \begin{classdesc}{ServerProxy}{uri\optional{, transport\optional{,
! encoding\optional{, verbose}}}}
! A \class{ServerProxy} instance is an object that manages communication
with a remote XML-RPC server. The required first argument is a URI
(Uniform Resource Indicator), and will normally be the URL of the
***************
*** 35,39 ****
fetch other server-associated metadata.
! \class{Server} instance methods take Python basic types and objects as
arguments and return Python basic types and classes. Types that are
conformable (e.g. that can be marshalled through XML), include the
--- 35,39 ----
fetch other server-associated metadata.
! \class{ServerProxy} instance methods take Python basic types and objects as
arguments and return Python basic types and classes. Types that are
conformable (e.g. that can be marshalled through XML), include the
***************
*** 70,73 ****
--- 70,76 ----
described below.
+ \class{Server} is retained as an alias for \class{ServerProxy} for backwards
+ compatibility. New code should use \class{ServerProxy}.
+
\end{classdesc}
***************
*** 84,90 ****
! \subsection{Server Objects \label{server-objects}}
! A \class{Server} instance proxy object has a method corresponding to
each remote procedure call accepted by the XML-RPC server. Calling
the method performs an RPC, dispatched by both name and argument
--- 87,93 ----
! \subsection{ServerProxy Objects \label{serverproxy-objects}}
! A \class{ServerProxy} instance has a method corresponding to
each remote procedure call accepted by the XML-RPC server. Calling
the method performs an RPC, dispatched by both name and argument
***************
*** 245,250 ****
# simple test program (from the XML-RPC specification)
! # server = Server("http://localhost:8000") # local server
! server = Server("http://betty.userland.com")
print server
--- 248,253 ----
# simple test program (from the XML-RPC specification)
! # server = ServerProxy("http://localhost:8000") # local server
! server = ServerProxy("http://betty.userland.com")
print server