MCPcopy Create free account
hub / github.com/ActiveState/code / callRemote

Method callRemote

recipes/Python/473865_Authenticate/recipe-473865.py:61–69  ·  view source on GitHub ↗
(self, method, *args)

Source from the content-addressed store, hash-verified

59 self.secure = self.url.scheme == 'https'
60
61 def callRemote(self, method, *args):
62 factory = AuthQueryFactory(self.url, method, *args)
63 if self.secure:
64 from twisted.internet import ssl
65 reactor.connectSSL(self.host, self.port or 443,
66 factory, ssl.ClientContextFactory())
67 else:
68 reactor.connectTCP(self.host, self.port or 80, factory)
69 return factory.deferred
70
71def _test():
72 '''

Callers 10

_testFunction · 0.95
_pingMethod · 0.80
startMethod · 0.80
quitTorrentsMethod · 0.80
pauseTorrentsMethod · 0.80
queryProgressMethod · 0.80
_pingMethod · 0.80
getRemoteFileMethod · 0.80
getRemoteResultMethod · 0.80

Calls 1

AuthQueryFactoryClass · 0.85

Tested by

no test coverage detected