MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / __init__

Method __init__

service/settings.py:155–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153 return cls._instance
154
155 def __init__(self):
156
157 serviceNetworkDefaultSettings = {
158 "mode" : self.PROXY_MODE_AUTODETECT,
159 "type" : "https",
160 "address" : "",
161 "port" : "",
162 "access" : 15,
163 "login" : None,
164 "password": None
165 }
166
167 self.serviceNetworkSettings = SettingsProvider.getInstance().getSettings(
168 "pyfaServiceNetworkSettings", serviceNetworkDefaultSettings)
169
170 def isEnabled(self, type):
171 if type & self.serviceNetworkSettings["access"]:

Callers

nothing calls this directly

Calls 2

getSettingsMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected