MCPcopy
hub / github.com/pyload/pyload / get

Method get

module/plugins/internal/misc.py:71–83  ·  view source on GitHub ↗

Returns config value for current plugin :param option: :return:

(self, option, default=None, plugin=None)

Source from the content-addressed store, hash-verified

69 self.plugin.pyload.api.setConfigValue(plugin or self.plugin.classname, option, value, section="plugin")
70
71 def get(self, option, default=None, plugin=None):
72 """
73 Returns config value for current plugin
74
75 :param option:
76 :return:
77 """
78 try:
79 return self.plugin.pyload.config.getPlugin(plugin or self.plugin.classname, option)
80
81 except KeyError:
82 self.plugin.log_debug("Config option `%s` not found, use default `%s`" % (option, default)) # @TODO: Restore to `log_warning` in 0.4.10
83 return default
84
85
86class DB(object):

Callers 15

decryptMethod · 0.45
decryptMethod · 0.45
signinMethod · 0.45
signinMethod · 0.45
grab_infoMethod · 0.45
signinMethod · 0.45
grab_infoMethod · 0.45
signinMethod · 0.45
grab_hostersMethod · 0.45
grab_infoMethod · 0.45
signinMethod · 0.45
grab_infoMethod · 0.45

Calls 2

log_debugMethod · 0.80
getPluginMethod · 0.45

Tested by

no test coverage detected