def getLTSPServers(): l=conecta() h = Hosts (l,"","","","ltsp-server-hosts") #h = Hosts (l,"","","","workstation-hosts") response = h.getListTriplets() l.close() return dict(response=response)
def getLaptops(): try: l=conecta() h = Hosts (l,"","","","laptop-hosts") response = h.getListTriplets() l.close() except: response=[] return dict(response=response)
def getLaptops(): try: l = conecta() h = Hosts(l, "", "", "", "laptop-hosts") response = h.getListTriplets() l.close() except: response = [] return dict(response=response)
def getWorkstations(): l=conecta() h = Hosts (l,"","","","workstation-hosts") response = h.getListTriplets() l.close() return dict(response=response)
def getSIATIC(): l=conecta() h = Hosts (l,"","","","siatic-hosts") response = h.getListTriplets() l.close() return dict(response=response)
def getWorkstations(): l = conecta() h = Hosts(l, "", "", "", "workstation-hosts") response = h.getListTriplets() l.close() return dict(response=response)
def getSIATIC(): l = conecta() h = Hosts(l, "", "", "", "siatic-hosts") response = h.getListTriplets() l.close() return dict(response=response)
def getLTSPServers(): l = conecta() h = Hosts(l, "", "", "", "ltsp-server-hosts") response = h.getListTriplets() l.close() return dict(response=response)