equal
deleted
inserted
replaced
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 |