if self.hasNimType("DVB-S"):
print "Reading satellites.xml"
db.readSatellites(self.satList, self.satellites, self.transponders)
-# print "SATLIST", self.satList
-# print "SATS", self.satellites
-# print "TRANSPONDERS", self.transponders
+ self.satList.sort(key = lambda x: x[0]) # sort by orbpos
+ #print "SATLIST", self.satList
+ #print "SATS", self.satellites
+ #print "TRANSPONDERS", self.transponders
if self.hasNimType("DVB-C"):
print "Reading cables.xml"
def __init__(self, list, default = None):
if default is not None:
default = str(default)
- list.sort(key = lambda x: int(x[0]))
self._satList = list
choices = [(str(orbpos), desc) for (orbpos, desc, flags) in list]