ztfy/utils/protocol/xmlrpc.py
changeset 29 035058514c2d
parent 27 5581b89ad027
equal deleted inserted replaced
28:ec82f750a462 29:035058514c2d
    31 
    31 
    32 class XMLRPCCookieAuthTransport(xmlrpclib.Transport):
    32 class XMLRPCCookieAuthTransport(xmlrpclib.Transport):
    33     """An XML-RPC transport handling authentication via cookies"""
    33     """An XML-RPC transport handling authentication via cookies"""
    34 
    34 
    35     def __init__(self, user_agent, credentials=(), cookies=None):
    35     def __init__(self, user_agent, credentials=(), cookies=None):
       
    36         xmlrpclib.Transport.__init__(self)
    36         self.user_agent = user_agent
    37         self.user_agent = user_agent
    37         self.credentials = credentials
    38         self.credentials = credentials
    38         self.cookies = cookies
    39         self.cookies = cookies
    39 
    40 
    40     # override the send_host hook to also send authentication info
    41     # override the send_host hook to also send authentication info