diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-02-19 20:35:46 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-02-19 20:35:46 +0000 |
| commit | daaf4b6ba8fbddd81553e0076385220ef1a7f327 (patch) | |
| tree | 8aa13e60d83917ace5510441a8665b326163a45f /lib/python/Plugins/update/plugin.py | |
| parent | d10f7fd19c29bb8a3f4aa32679317e00ac4a3cbb (diff) | |
| download | enigma2-daaf4b6ba8fbddd81553e0076385220ef1a7f327.tar.gz enigma2-daaf4b6ba8fbddd81553e0076385220ef1a7f327.zip | |
new plugin interface
Diffstat (limited to 'lib/python/Plugins/update/plugin.py')
| -rw-r--r-- | lib/python/Plugins/update/plugin.py | 24 |
1 files changed, 5 insertions, 19 deletions
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) |
