MCPcopy Index your code
hub / github.com/pyload/pyload / setPlugin

Method setPlugin

module/ConfigParser.py:310–319  ·  view source on GitHub ↗

sets a value for a plugin

(self, plugin, option, value)

Source from the content-addressed store, hash-verified

308 return val
309
310 def setPlugin(self, plugin, option, value):
311 """sets a value for a plugin"""
312
313 value = self.cast(self.plugin[plugin][option]["type"], value)
314
315 if self.pluginCB:
316 self.pluginCB(plugin, option, value)
317
318 self.plugin[plugin][option]["value"] = value
319 self.save()
320
321 def getMetaData(self, section, option):
322 """ get all config data for an option """

Callers 2

setConfigValueMethod · 0.80
setConfMethod · 0.80

Calls 2

castMethod · 0.95
saveMethod · 0.95

Tested by

no test coverage detected