fix *required* kwargs. plugins not having **kwargs will probably not run with newer...
authorFelix Domke <tmbinc@elitedvb.net>
Sat, 28 Jul 2007 09:18:29 +0000 (09:18 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sat, 28 Jul 2007 09:18:29 +0000 (09:18 +0000)
lib/python/Plugins/Extensions/FritzCall/plugin.py
lib/python/Plugins/Extensions/IpkgInstaller/plugin.py
lib/python/Plugins/Extensions/PicturePlayer/plugin.py
lib/python/Plugins/Extensions/SimpleRSS/plugin.py
lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py
lib/python/Plugins/SystemPlugins/Satfinder/plugin.py
lib/python/Plugins/SystemPlugins/SkinSelector/plugin.py

index 0b67345..be76f79 100644 (file)
@@ -131,7 +131,7 @@ class FritzCall:
                        self.d[1].disconnect()
                        self.d = None
 
-def main(session):
+def main(session, **kwargs):
        session.open(FritzCallSetup)
 
 fritz_call = None
index f6dfc96..d9a3d49 100644 (file)
@@ -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) ]
index c54669b..4462df1 100644 (file)
@@ -533,7 +533,7 @@ def main(session, **kwargs):
 def filescan_open(list, session, **kwargs):
        session.open(picmain) # 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
index 980fe5d..b521835 100644 (file)
@@ -19,7 +19,8 @@ from sets import Set
 
 my_global_session = None
 
-urls = ["http://www.heise.de/newsticker/heise.rdf", "http://rss.slashdot.org/Slashdot/slashdot/to"]
+#urls = ["http://www.heise.de/newsticker/heise.rdf", "http://rss.slashdot.org/Slashdot/slashdot/to"]
+urls = ["http://mastermaq.podcastspot.com/episodes/rss/mpg1"]
 
 from Components.config import config, ConfigSubsection, ConfigSelection, getConfigListEntry
 from Components.ConfigList import ConfigListScreen
@@ -233,7 +234,7 @@ class RSSPoller:
                self.poll_timer.timeout.get().remove(self.poll)
                self.poll_timer = None
 
-def main(session):
+def main(session, **kwargs):
        print "session.open"
        session.open(SimpleRSS)
        print "done"
index 9ee4777..25cad5c 100644 (file)
@@ -567,7 +567,7 @@ def PositionerMain(session, **kwargs):
                        else:
                                session.open(MessageBox, _("No tuner is configured for use with a diseqc positioner!"), MessageBox.TYPE_ERROR)
 
-def PositionerSetupStart(menuid):
+def PositionerSetupStart(menuid, **kwargs):
        if menuid == "scan":
                return [(_("Positioner setup"), PositionerMain)]
        else:
index 73ecd0f..eb20b46 100644 (file)
@@ -277,7 +277,7 @@ def SatfinderMain(session, **kwargs):
                        else:
                                session.open(NimSelection)
 
-def SatfinderStart(menuid):
+def SatfinderStart(menuid, **kwargs):
        if menuid == "scan":
                return [(_("Satfinder"), SatfinderMain)]
        else:
index 5a130ba..d922117 100755 (executable)
@@ -129,7 +129,7 @@ class SkinSelector(Screen):
 def SkinSelMain(session, **kwargs):
        session.open(SkinSelector)
 
-def SkinSelSetup(menuid):
+def SkinSelSetup(menuid, **kwargs):
        if menuid == "system":
                return [("Skin...", SkinSelMain)]
        else: