Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
ServerProxy Class Reference

Public Member Functions

def __init__
 
def __repr__
 
def __getattr__
 

Detailed Description

uri [,options] -> a logical connection to an XML-RPC server

uri is the connection point on the server, given as
scheme://host/target.

The standard implementation always supports the "http" scheme.  If
SSL socket support is available (Python 2.0), it also supports
"https".

If the target part and the slash preceding it are both omitted,
"/RPC2" is assumed.

The following options can be given as keyword arguments:

    transport: a transport factory
    encoding: the request encoding (default is UTF-8)

All 8-bit strings passed to the server proxy are assumed to use
the given encoding.

Definition at line 922 of file xmlrpclib.py.

Constructor & Destructor Documentation

def __init__ (   self,
  uri,
  transport = None,
  encoding = None,
  verbose = 0 
)

Definition at line 944 of file xmlrpclib.py.

References ServerProxy.__encoding, ServerProxy.__handler, ServerProxy.__transport, _Verbose.__verbose, ServerProxy.__verbose, xmlrpclib.dumps(), urllib.splithost(), and urllib.splittype().

945  def __init__(self, uri, transport=None, encoding=None, verbose=0):
946  # establish a "logical" server connection
947 
948  # get the url
949  import urllib
950  type, uri = urllib.splittype(uri)
951  if type not in ("http", "https"):
952  raise IOError, "unsupported XML-RPC protocol"
953  self.__host, self.__handler = urllib.splithost(uri)
954  if not self.__handler:
955  self.__handler = "/RPC2"
956 
957  if transport is None:
958  if type == "https":
959  transport = SafeTransport()
960  else:
961  transport = Transport()
962  self.__transport = transport
963 
964  self.__encoding = encoding
965  self.__verbose = verbose

Member Function Documentation

def __getattr__ (   self,
  name 
)

Definition at line 991 of file xmlrpclib.py.

References ServerProxy.__request().

992  def __getattr__(self, name):
993  # magic method dispatcher
994  return _Method(self.__request, name)
def __repr__ (   self)

Definition at line 983 of file xmlrpclib.py.

References ServerProxy.__handler.

984  def __repr__(self):
985  return (
986  "<ServerProxy for %s%s>" %
987  (self.__host, self.__handler)
988  )

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