add webbouqueteditor (dmm plugin contest winner plugin)
[enigma2-plugins.git] / webbouqueteditor / src / WebScreens / AdditionalWebScreens.py
1 from Plugins.Extensions.WebInterface.WebScreens import WebScreen
2
3 class AdditionalWebScreen(WebScreen):
4         def __init__(self, session, request):
5                 WebScreen.__init__(self, session, request)
6                 from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.SatellitesList import SatellitesList
7                 self["SatellitesList"] = SatellitesList(func=SatellitesList.FETCH)
8                 
9                 from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.ServiceList import ServiceList
10                 
11                 
12                 from Screens.ChannelSelection import service_types_tv
13                 from enigma import eServiceReference
14         
15                 fav = eServiceReference(service_types_tv + ' FROM BOUQUET "bouquets.tv" ORDER BY bouquet')
16                 self["ServiceList"] = ServiceList(fav, command_func=self.getServiceList, validate_commands=False)
17                 
18                 
19                 from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.ProtectionSettings import ProtectionSettings
20                 self["ProtectionSettings"] = ProtectionSettings()
21                 
22         def getServiceList(self, sRef):
23                 self["ServiceList"].root = sRef 
24
25