aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Plugin.py
diff options
context:
space:
mode:
authoracid-burn <acid-burn@opendreambox.org>2011-02-07 14:15:40 +0100
committeracid-burn <acid-burn@opendreambox.org>2011-02-07 14:15:40 +0100
commit367c104e1d3716861c87905575d0bc729342d79c (patch)
tree393b52b254228c6a89e858f646e6c7daaa38b389 /lib/python/Plugins/Plugin.py
parent33e4aeedec7bde0b0f853396f7b308412bd85496 (diff)
downloadenigma2-367c104e1d3716861c87905575d0bc729342d79c.tar.gz
enigma2-367c104e1d3716861c87905575d0bc729342d79c.zip
PluginSystem: implement new PluginDescriptor option "needsRestart" to define if a plugin needs an enigma2 restart after installation.
Now new installed plugins are only direct accessible after installation if needsRestart=False is defined inside the plugins PluginDescriptor. fixes #670
Diffstat (limited to 'lib/python/Plugins/Plugin.py')
-rwxr-xr-xlib/python/Plugins/Plugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/Plugins/Plugin.py b/lib/python/Plugins/Plugin.py
index 5a676cda..9ecdbc26 100755
--- a/lib/python/Plugins/Plugin.py
+++ b/lib/python/Plugins/Plugin.py
@@ -61,9 +61,10 @@ class PluginDescriptor:
WHERE_SOFTWAREMANAGER = 14
- def __init__(self, name = "Plugin", where = [ ], description = "", icon = None, fnc = None, wakeupfnc = None, internal = False):
+ def __init__(self, name = "Plugin", where = [ ], description = "", icon = None, fnc = None, wakeupfnc = None, needsRestart = None, internal = False):
self.name = name
self.internal = internal
+ self.needsRestart = needsRestart
if isinstance(where, list):
self.where = where
else: