MCPcopy
hub / github.com/evilsocket/opensnitch / getInt

Method getInt

ui/opensnitch/config.py:219–223  ·  view source on GitHub ↗
(self, path, default_value=0)

Source from the content-addressed store, hash-verified

217 return self.settings.value(path, type=bool, defaultValue=default_value)
218
219 def getInt(self, path, default_value=0):
220 try:
221 return self.settings.value(path, type=int, defaultValue=default_value)
222 except Exception:
223 return default_value
224
225 def getDefaultAction(self):
226 _default_action = self.getInt(self.DEFAULT_ACTION_KEY)

Callers 15

__init__Method · 0.95
getDefaultActionMethod · 0.95
test_save_ui_settingsMethod · 0.80
askMethod · 0.80
__init__Method · 0.80
_show_systray_messageMethod · 0.80
_cleaner_taskMethod · 0.80
_start_db_cleanerMethod · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by 2

test_save_ui_settingsMethod · 0.64