#!/usr/bin/python from __future__ import print_function from datasource import genericdatasource from satxml import satxml from lamedb import lamedb import sys if len(sys.argv) != 3: print("[lamedb2satxml] usage: %s <lamedb> <satellites.xml>" % sys.argv[0]) sys.exit() gen = genericdatasource() db = lamedb(sys.argv[1]) xml = satxml(sys.argv[2]) db.read() gen.source = db gen.destination = xml gen.docopymerge(action="copy") xml.write()
#!/usr/bin/python from datasource import genericdatasource from satxml import satxml from lamedb import lamedb from input import * import sys import os maindata = genericdatasource() sources = [satxml, lamedb] datasources = [maindata] for source in sources: datasources.append(source()) for source in datasources: source.setDatasources(datasources) while(True): os.system("/usr/bin/clear") list = [] for index in range(len(datasources)): list.append(datasources[index].getName() + (" (%d sats)" % len(datasources[index].transponderlist.keys()))) index = inputChoices(list, "q", "quit") if index is None: break while(True): print datasources[index].getStatus()
#!/usr/bin/python import os from datasource import genericdatasource from satxml import satxml from lamedb import lamedb from input import * maindata = genericdatasource() sources = [satxml, lamedb] datasources = [maindata] for source in sources: datasources.append(source()) for source in datasources: source.setDatasources(datasources) while True: os.system("/usr/bin/clear") list = [] for index in range(len(datasources)): list.append(datasources[index].getName() + (" (%d sats)" % len(datasources[index].transponderlist.keys()))) index = inputChoices(list, "q", "quit") if index is None: break
#!/usr/bin/python from datasource import genericdatasource from satxml import satxml from lamedb import lamedb import sys if len(sys.argv) != 3: print "usage: %s <lamedb> <satellites.xml>" % sys.argv[0] sys.exit() gen = genericdatasource() db = lamedb(sys.argv[1]) xml = satxml(sys.argv[2]) db.read() gen.source = db gen.destination = xml gen.docopymerge(action = "copy") xml.write()