From daaf4b6ba8fbddd81553e0076385220ef1a7f327 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sun, 19 Feb 2006 20:35:46 +0000 Subject: new plugin interface --- lib/python/Plugins/update/plugin.py | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'lib/python/Plugins/update/plugin.py') diff --git a/lib/python/Plugins/update/plugin.py b/lib/python/Plugins/update/plugin.py index fb332a5e..070c199c 100644 --- a/lib/python/Plugins/update/plugin.py +++ b/lib/python/Plugins/update/plugin.py @@ -4,6 +4,7 @@ from Screens.MessageBox import MessageBox from Components.ActionMap import ActionMap from Components.ScrollLabel import ScrollLabel from Components.GUIComponent import * +from Plugins.Plugin import PluginDescriptor import os @@ -161,23 +162,8 @@ class Ipkg(Screen): else: self.close() +def main(session): + session.open(Upgrade) - -def autostart(): - return - os.popen("ipkg update", "r") -# -#def autoend(): - #print "**************************** AUTOEND" - -def getPicturePaths(): - return ["update.png", "update.png"] - -def getPlugins(): - return [("Softwareupdate", "Updates your receiver's software", "screen", "Upgrade"), - ("IPKG", "Updates your receiver's software", "screen", "Ipkg")] - -def getMenuRegistrationList(): - list = [] - list.append(("setup", 2, "Softwareupdate", "Upgrade")) - return list \ No newline at end of file +def Plugins(): + return PluginDescriptor(name="Softwareupdate", description="Updates your receiver's software", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main) -- cgit v1.2.3