gets a value for a plugin
(self, plugin, option)
| 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""" |
no test coverage detected