From 6c7725cee8f320ae8de087aaf753169f11c907f9 Mon Sep 17 00:00:00 2001 From: mkaay Date: Mon, 7 Feb 2011 20:48:23 +0100 Subject: Ev0InFetcher update (thanks to KurrKurr) --- module/plugins/PluginStorage.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'module/plugins/PluginStorage.py') 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) -- cgit v1.2.3