parameters: (self, server, username, password, timeout=120)
docstring: Initializes a new Confluence XML RPC API client instance.
  
          :param server: URL of the Confluence server.
          :param username: username to use for authentication.
          :param password: password to use for authentication.
  
          Usage:
  
              >>> from confluence import Confluence
              >>>
              >>> conf = Confluence("http://localhost:8080", "admin", "admin")
              >>> conf.store_page_content("test", "test", "hello world!")
docstring_summary: Initializes a new Confluence XML RPC API client instance.
docstring_tokens: Initializes a new Confluence XML RPC API client instance .
function: def __init__(self, server, username, password, timeout=120):
          """
          Initializes a new Confluence XML RPC API client instance.
  
          :param server: URL of the Confluence server.
          :param username: username to use for authentication.
          :param password: password to use for authentication.
  
          Usage:
  
              >>> from confluence import Confluence
              >>>
              >>> conf = Confluence("http://localhost:8080", "admin", "admin")
              >>> conf.store_page_content("test", "test", "hello world!")
  
          """
          super(Confluence, self).__init__()
          # without this there is no timeout, and this may block the requests
          socket.setdefaulttimeout(timeout)
  
          self._server = xmlrpclib.ServerProxy(
              server + '/rpc/xmlrpc', allow_none=True)
  
          for version in "confluence2", "confluence1":
              try:
                  self._token = getattr(self._server, version).login(
                      username, password)
                  self.info("Logged in via \"%s\" as \"%s\"", version, username)
                  self._version = version
                  self._api = getattr(self._server, version)
                  break
              except xmlrpclib.Error as e:
                  self.debug("Failed \"%s\" login: %s", version, e)
          else:
              raise ValueError(
                  "Could not login to %s as %s" % (server, username))
function_tokens: def __init__ ( self , server , username , password , timeout = 120 ) : super ( Confluence , self ) . __init__ ( ) # without this there is no timeout, and this may block the requests socket . setdefaulttimeout ( timeout ) self . _server = xmlrpclib . ServerProxy ( server + '/rpc/xmlrpc' , allow_none = True ) for version in "confluence2" , "confluence1" : try : self . _token = getattr ( self . _server , version ) . login ( username , password ) self . info ( "Logged in via \"%s\" as \"%s\"" , version , username ) self . _version = version self . _api = getattr ( self . _server , version ) break except xmlrpclib . Error as e : self . debug ( "Failed \"%s\" login: %s" , version , e ) else : raise ValueError ( "Could not login to %s as %s" % ( server , username ) )