Index: data/keymap.xml =================================================================== RCS file: /cvs/enigma2/data/keymap.xml,v retrieving revision 1.109 diff -u -r1.109 keymap.xml --- data/keymap.xml 3 Feb 2008 19:48:02 -0000 1.109 +++ data/keymap.xml 5 Feb 2008 14:11:19 -0000 @@ -493,7 +493,7 @@ - + Index: lib/python/Plugins/Plugin.py =================================================================== RCS file: /cvs/enigma2/lib/python/Plugins/Plugin.py,v retrieving revision 1.19 diff -u -r1.19 Plugin.py --- lib/python/Plugins/Plugin.py 2 Jan 2008 17:22:25 -0000 1.19 +++ lib/python/Plugins/Plugin.py 5 Feb 2008 14:11:19 -0000 @@ -45,6 +45,9 @@ # or return a function which is called with session and the interface name for extended setup of this interface WHERE_NETWORKSETUP = 10 + # to query extra info from internet databases e.g. IMDB + WHERE_EVENTINFO = 11 + def __init__(self, name = "Plugin", where = [ ], description = "", icon = None, fnc = None, wakeupfnc = None): self.name = name if type(where) is list: Index: lib/python/Screens/EventView.py =================================================================== RCS file: /cvs/enigma2/lib/python/Screens/EventView.py,v retrieving revision 1.26 diff -u -r1.26 EventView.py --- lib/python/Screens/EventView.py 22 Jul 2007 09:54:00 -0000 1.26 +++ lib/python/Screens/EventView.py 5 Feb 2008 14:11:19 -0000 @@ -40,9 +40,18 @@ "prevEvent": self.prevEvent, "nextEvent": self.nextEvent, "timerAdd": self.timerAdd, - "openSimilarList": self.openSimilarList + "openSimilarList": self.openSimilarList, + "info": self.getInfoPlugin }) self.onShown.append(self.onCreate) + + def getInfoPlugin(self): + from Plugins.Plugin import PluginDescriptor + from Components.PluginComponent import plugins + + for p in plugins.getPlugins(where = PluginDescriptor.WHERE_EVENTINFO): + print "getInfoPlugin = " + p.name + p(session = self.session,eventName = self.event.getEventName()) def onCreate(self): self.setService(self.currentService)