def create_xmlrpc_proxy(url, username, password): """Obtain an XMLRPC proxy to the Bugzilla service.""" transport = bugzilla_transport(url) proxy = xmlrpclib.ServerProxy(url, transport) proxy.User.login({'login': username, 'password': password}) return transport, proxy
def transport(self): if self._transport is None: self._transport = bugzilla_transport(self.xmlrpc_url) return self._transport