1 from Screen import Screen
3 from Components.MenuList import MenuList
4 from Components.ActionMap import ActionMap
5 from Components.PluginComponent import plugins
6 from Components.PluginList import *
7 from Components.config import config
8 from Plugins.Plugin import PluginDescriptor
10 class PluginBrowser(Screen):
11 def __init__(self, session):
12 Screen.__init__(self, session)
15 self["list"] = PluginList(self.list)
18 self["actions"] = ActionMap(["WizardActions"],
29 plugin = self["list"].l.getCurrentSelection()[0]
31 plugin(session=self.session)
35 self.pluginlist = plugins.getPlugins(PluginDescriptor.WHERE_PLUGINMENU)
36 for plugin in self.pluginlist:
37 self.list.append(PluginEntryComponent(plugin))
39 self["list"].l.setList(self.list)