summaryrefslogtreecommitdiffstats
path: root/module/plugins/PluginStorage.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-01-26 00:37:08 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-01-26 00:37:08 +0100
commit623eefac57533009672cc5a46a85c123ed43477d (patch)
tree6b57e371ec6892b08c5334ea59bd3cbdcbef51d8 /module/plugins/PluginStorage.py
parentmoved hooks periodical call to scheduler (diff)
downloadpyload-623eefac57533009672cc5a46a85c123ed43477d.tar.xz
added data storage (currently used for plugins), ev0.in rss fetcher, ul.to maxtraffic fix
Diffstat (limited to 'module/plugins/PluginStorage.py')
-rw-r--r--module/plugins/PluginStorage.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/module/plugins/PluginStorage.py b/module/plugins/PluginStorage.py
new file mode 100644
index 000000000..31a3616f4
--- /dev/null
+++ b/module/plugins/PluginStorage.py
@@ -0,0 +1,24 @@
+# -*- 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, default=None):
+ return self.core.files.getStorage(self.__name__, key, default)
+
+ def setStorage(self, key, value):
+ self.core.files.setStorage(self.__name__, key, value)