MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / setStatus

Method setStatus

src/Tor/TorManager.py:84–89  ·  view source on GitHub ↗
(self, status)

Source from the content-addressed store, hash-verified

82 self.enabled = False
83
84 def setStatus(self, status):
85 self.status = status
86 if "main" in sys.modules: # import main has side-effects, breaks tests
87 import main
88 if "ui_server" in dir(main):
89 main.ui_server.updateWebsocket()
90
91 def startTor(self):
92 if sys.platform.startswith("win"):

Callers 6

__init__Method · 0.95
connectControllerMethod · 0.95
resetCircuitsMethod · 0.95
addOnionMethod · 0.95
makeOnionAndKeyMethod · 0.95
delOnionMethod · 0.95

Calls 1

updateWebsocketMethod · 0.45

Tested by

no test coverage detected