from Components.config import config, ConfigSubsection, ConfigSelection, ConfigYesNo, ConfigInteger, getConfigListEntry, ConfigSlider, ConfigSatlist, ConfigEnableDisable
from Components.ActionMap import NumberActionMap
from Components.ConfigList import ConfigList, ConfigListScreen
-from Components.NimManager import nimmanager
+from Components.NimManager import nimmanager, getConfigSatlist
from Components.Label import Label
from Screens.MessageBox import MessageBox
from enigma import eTimer, eDVBFrontendParametersSatellite, eComponentScan, eDVBSatelliteEquipmentControl, eDVBFrontendParametersTerrestrial, eDVBFrontendParametersCable
del self.feinfo
del self.service
-
self["actions"] = NumberActionMap(["SetupActions"],
{
"ok": self.keyGo,
for slot in nimmanager.nimslots:
if (nimmanager.getNimType(slot.slotid) == nimmanager.nimType["DVB-S"]):
print str(slot.slotid) + " : " + str(self.satList)
- self.scan_satselection.append(ConfigSatlist(default = defaultSat["orbpos"], list = self.satList[slot.slotid]))
+ self.scan_satselection.append(getConfigSatlist(defaultSat["orbpos"],self.satList[slot.slotid]))
else:
self.scan_satselection.append(None)
nim.nim_index = 0
if nimtype == nimmanager.nimType["DVB-S"] and not len(nimmanager.getSatListForNim(0)):
scan_possible=False
+ if nimtype == nimmanager.nimType["empty/unknown"]:
+ scan_possible = False
if scan_possible:
self.list.append(getConfigListEntry(_("Scan NIM") + " 0 (" + nimmanager.getNimTypeName(0) + ")", nim))
return 0
def ScanNimTwoNeeded(self):
+ if nimmanager.getNimType(1) == nimmanager.nimType["empty/unknown"]:
+ return False
if nimmanager.getNimType(0) != nimmanager.getNimType(1):
return True
if nimmanager.getNimType(0) == nimmanager.nimType["DVB-S"]: #two dvb-s nims