MCPcopy
hub / github.com/pyload/pyload / getPlugin

Method getPlugin

module/ConfigParser.py:299–308  ·  view source on GitHub ↗

gets a value for a plugin

(self, plugin, option)

Source from the content-addressed store, hash-verified

297 self.save()
298
299 def getPlugin(self, plugin, option):
300 """gets a value for a plugin"""
301 val = self.plugin[plugin][option]["value"]
302 try:
303 if type(val) in (str, unicode):
304 return val.decode("utf8")
305 else:
306 return val
307 except:
308 return val
309
310 def setPlugin(self, plugin, option, value):
311 """sets a value for a plugin"""

Callers 4

initPluginMethod · 0.45
getConfigValueMethod · 0.45
createIndexMethod · 0.45
runMethod · 0.45

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected