diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-08-08 19:00:43 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-08-08 19:00:43 +0000 |
| commit | b56bcb6768ce0fdb7124e02d2fd6a531b4068505 (patch) | |
| tree | eae4c13e9be3325429972208bb167a37a1dc540c /lib/python/Plugins | |
| parent | 26ea0041c3afd21d33cf87364b8cb6b71261aad2 (diff) | |
| download | enigma2-b56bcb6768ce0fdb7124e02d2fd6a531b4068505.tar.gz enigma2-b56bcb6768ce0fdb7124e02d2fd6a531b4068505.zip | |
plugins can appear in the extensions menu now
use PluginDescriptor.WHERE_EXTENSIONSMENU and the same parameters as for standard plugins (see the file manager plugin for an
example)
Diffstat (limited to 'lib/python/Plugins')
| -rw-r--r-- | lib/python/Plugins/Extensions/FileManager/plugin.py | 3 | ||||
| -rw-r--r-- | lib/python/Plugins/Plugin.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/Plugins/Extensions/FileManager/plugin.py b/lib/python/Plugins/Extensions/FileManager/plugin.py index 11f75a2b..d2b19719 100644 --- a/lib/python/Plugins/Extensions/FileManager/plugin.py +++ b/lib/python/Plugins/Extensions/FileManager/plugin.py @@ -66,4 +66,5 @@ def main(session, **kwargs): session.open(FileManager) def Plugins(**kwargs): - return PluginDescriptor(name="File-Manager", description="Let's you view/edit files in your Dreambox", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main) + return [PluginDescriptor(name="File-Manager", description="Let's you view/edit files in your Dreambox", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main), + PluginDescriptor(name="File-Manager", description="Let's you view/edit files in your Dreambox", where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=main)] diff --git a/lib/python/Plugins/Plugin.py b/lib/python/Plugins/Plugin.py index b2808c8e..3a79e396 100644 --- a/lib/python/Plugins/Plugin.py +++ b/lib/python/Plugins/Plugin.py @@ -14,7 +14,7 @@ class PluginDescriptor: # you have to ignore unknown kwargs! # argument: session - WHERE_BLUEMENU = 0 + WHERE_EXTENSIONSMENU = 0 WHERE_MAINMENU = 1 WHERE_PLUGINMENU = 2 # argument: session, serviceref (currently selected) |
