diff options
author | mkaay <mkaay@mkaay.de> | 2011-02-07 20:48:23 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-02-07 20:48:23 +0100 |
commit | 6c7725cee8f320ae8de087aaf753169f11c907f9 (patch) | |
tree | 87a1c1fed1158f44ad43734533705badd829cfc2 /module/plugins/PluginStorage.py | |
parent | captchamanager fix (diff) | |
download | pyload-6c7725cee8f320ae8de087aaf753169f11c907f9.tar.xz |
Ev0InFetcher update (thanks to KurrKurr)
Diffstat (limited to 'module/plugins/PluginStorage.py')
-rw-r--r-- | module/plugins/PluginStorage.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/module/plugins/PluginStorage.py b/module/plugins/PluginStorage.py index 31a3616f4..02498a446 100644 --- a/module/plugins/PluginStorage.py +++ b/module/plugins/PluginStorage.py @@ -17,8 +17,13 @@ """ class PluginStorage(): - def getStorage(self, key, default=None): - return self.core.files.getStorage(self.__name__, key, default) + def getStorage(self, key=None, default=None): + if key is not None: + return self.core.db.getStorage(self.__name__, key) or default + return self.core.db.getStorage(self.__name__, key) def setStorage(self, key, value): - self.core.files.setStorage(self.__name__, key, value) + self.core.db.setStorage(self.__name__, key, value) + + def delStorage(self, key): + self.core.db.delStorage(self.__name__, key) |