Back to index

python3.2  3.2.2
Public Member Functions | Private Attributes | Static Private Attributes
xmlrpc.client.MultiCall Class Reference

List of all members.

Public Member Functions

def __init__
def __repr__
def __getattr__
def __call__

Private Attributes

 __server
 __call_list

Static Private Attributes

 __str__ = __repr__

Detailed Description

server -> a object used to boxcar method calls

server should be a ServerProxy object.

Methods can be added to the MultiCall using normal
method call syntax e.g.:

multicall = MultiCall(server_proxy)
multicall.add(2,3)
multicall.get_address("Guido")

To execute the multicall, call the MultiCall object e.g.:

add_result, address = multicall()

Definition at line 836 of file client.py.


Constructor & Destructor Documentation

def xmlrpc.client.MultiCall.__init__ (   self,
  server 
)

Definition at line 853 of file client.py.

00853 
00854     def __init__(self, server):
00855         self.__server = server
00856         self.__call_list = []

Here is the caller graph for this function:


Member Function Documentation

Definition at line 865 of file client.py.

00865 
00866     def __call__(self):
00867         marshalled_list = []
00868         for name, args in self.__call_list:
00869             marshalled_list.append({'methodName' : name, 'params' : args})
00870 
00871         return MultiCallIterator(self.__server.system.multicall(marshalled_list))
00872 
00873 # --------------------------------------------------------------------
00874 # convenience functions

def xmlrpc.client.MultiCall.__getattr__ (   self,
  name 
)

Definition at line 862 of file client.py.

00862 
00863     def __getattr__(self, name):
00864         return _MultiCallMethod(self.__call_list, name)

Definition at line 857 of file client.py.

00857 
00858     def __repr__(self):
00859         return "<MultiCall at %x>" % id(self)


Member Data Documentation

Definition at line 855 of file client.py.

Definition at line 854 of file client.py.

Definition at line 860 of file client.py.


The documentation for this class was generated from the following file: