list.append(getConfigListEntry(_("Port D"), self.nimConfig.diseqcD))
def createPositionerSetup(self, list):
- list.append(getConfigListEntry(_("Positioner mode"), self.nimConfig.positionerMode))
- if (currentConfigSelectionElement(self.nimConfig.positionerMode) == "usals"): # USALS
- list.append(getConfigListEntry(_("Longitude"), self.nimConfig.longitude))
- list.append(getConfigListEntry(" ", self.nimConfig.longitudeOrientation))
- list.append(getConfigListEntry(_("Latitude"), self.nimConfig.latitude))
- list.append(getConfigListEntry(" ", self.nimConfig.latitudeOrientation))
- elif (currentConfigSelectionElement(self.nimConfig.positionerMode) == "manual"): # manual
- pass
+# list.append(getConfigListEntry(_("Positioner mode"), self.nimConfig.positionerMode))
+# if (currentConfigSelectionElement(self.nimConfig.positionerMode) == "usals"): # USALS
+ list.append(getConfigListEntry(_("Longitude"), self.nimConfig.longitude))
+ list.append(getConfigListEntry(" ", self.nimConfig.longitudeOrientation))
+ list.append(getConfigListEntry(_("Latitude"), self.nimConfig.latitude))
+ list.append(getConfigListEntry(" ", self.nimConfig.latitudeOrientation))
+# elif (currentConfigSelectionElement(self.nimConfig.positionerMode) == "manual"): # manual
+# pass
def createSetup(self):
print "Creating setup"
self.advancedUsalsEntry = None
self.advancedLof = None
self.advancedPowerMeasurement = None
+
+ self.nim_type = nimmanager.getNimType(self.nim.slotid)
- if (nimmanager.getNimType(self.nim.slotid) == nimmanager.nimType["DVB-S"]):
+ if self.nim_type == nimmanager.nimType["DVB-S"]:
self.configMode = getConfigListEntry(_("Configuration Mode"), self.nimConfig.configMode)
self.list.append(self.configMode)
self.list.append(self.advancedSatsEntry)
currSat = self.nimConfig.advanced.sat[nimmanager.satList[self.nimConfig.advanced.sats.value][1]]
self.fillListWithAdvancedSatEntrys(currSat)
- elif (nimmanager.getNimType(self.nim.slotid) == nimmanager.nimType["DVB-C"]):
+ self.have_advanced = True
+ elif self.nim_type == nimmanager.nimType["DVB-C"]:
self.list.append(getConfigListEntry(_("Cable provider"), self.nimConfig.cable))
- elif (nimmanager.getNimType(self.nim.slotid) == nimmanager.nimType["DVB-T"]):
+ self.have_advanced = False
+ elif self.nim_type == nimmanager.nimType["DVB-T"]:
+ self.have_advanced = False
self.list.append(getConfigListEntry(_("Terrestrial provider"), self.nimConfig.terrestrial))
+ else:
+ self.have_advanced = False
self["config"].list = self.list
self["config"].l.setList(self.list)
self["config"].handleKey(config.key[str(number)])
def run(self):
+ if self.have_advanced and currentConfigSelectionElement(config.Nims[self.nim.slotid].configMode) == "advanced":
+ self.fillAdvancedList()
for x in self["config"].list:
x[1].save()
nimmanager.sec.update()
def fillAdvancedList(self):
self.list = [ ]
+ self.configMode = getConfigListEntry(_("Configuration Mode"), self.nimConfig.configMode)
+ self.list.append(self.configMode)
self.advancedSatsEntry = getConfigListEntry(_("Satellite"), self.nimConfig.advanced.sats)
self.list.append(self.advancedSatsEntry)
for x in nimmanager.satList:
self["config"].list = self.list
def keySave(self):
- if currentConfigSelectionElement(config.Nims[self.nim.slotid].configMode) == "advanced":
- self.fillAdvancedList()
self.run()
self.close()