summaryrefslogtreecommitdiffstats
path: root/module/plugins/PluginStorage.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-29 00:20:39 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-29 00:20:39 +0200
commit7ecc4aed5425ebde0ac997e90249f4f937040771 (patch)
tree8558ae88bb034e79b77a70fff5b64d485eba6206 /module/plugins/PluginStorage.py
parentreworked authorization, now works on api level (diff)
downloadpyload-7ecc4aed5425ebde0ac997e90249f4f937040771.tar.xz
new plugin Base class providing useful methods
Diffstat (limited to 'module/plugins/PluginStorage.py')
-rw-r--r--module/plugins/PluginStorage.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/module/plugins/PluginStorage.py b/module/plugins/PluginStorage.py
deleted file mode 100644
index 02498a446..000000000
--- a/module/plugins/PluginStorage.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License,
- or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, see <http://www.gnu.org/licenses/>.
-
- @author: mkaay
-"""
-
-class PluginStorage():
- 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.db.setStorage(self.__name__, key, value)
-
- def delStorage(self, key):
- self.core.db.delStorage(self.__name__, key)