From f09c607ad3904b0adfe65a3f4519d79861711d4b Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sat, 28 Jul 2007 09:18:29 +0000 Subject: fix *required* kwargs. plugins not having **kwargs will probably not run with newer enigma2, but this has been documented since the beginning. --- lib/python/Plugins/Extensions/IpkgInstaller/plugin.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/python/Plugins/Extensions/IpkgInstaller/plugin.py') diff --git a/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py b/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py index f6dfc965..d9a3d490 100644 --- a/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py +++ b/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py @@ -49,7 +49,7 @@ class IpkgInstaller(Screen): def filescan_open(list, session, **kwargs): session.open(IpkgInstaller, list) # list -def filescan(): +def filescan(**kwargs): # we expect not to be called if the MediaScanner plugin is not available, # thus we don't catch an ImportError exception here from Plugins.Extensions.MediaScanner.plugin import Scanner, ScanPath @@ -62,8 +62,7 @@ def filescan(): ], name = "Ipkg", description = "Install software updates...", - openfnc = filescan_open, - ) - + openfnc = filescan_open, ) + def Plugins(**kwargs): - return [ PluginDescriptor(name="Ipkg", where = PluginDescriptor.WHERE_FILESCAN, fnc = filescan) ] \ No newline at end of file + return [ PluginDescriptor(name="Ipkg", where = PluginDescriptor.WHERE_FILESCAN, fnc = filescan) ] -- cgit v1.2.3