示例#1
0
def getLTSPServers():
    l=conecta()
    h = Hosts (l,"","","","ltsp-server-hosts")
    #h = Hosts (l,"","","","workstation-hosts")    
    response = h.getListTriplets()
    l.close()
    return dict(response=response)
示例#2
0
def getLaptops():
    try:
        l=conecta()
        h = Hosts (l,"","","","laptop-hosts")    
        response = h.getListTriplets()
        l.close()
    except:
        response=[]

    return dict(response=response)
示例#3
0
def getLaptops():
    try:
        l = conecta()
        h = Hosts(l, "", "", "", "laptop-hosts")
        response = h.getListTriplets()
        l.close()
    except:
        response = []

    return dict(response=response)
示例#4
0
def getWorkstations():
    l=conecta()
    h = Hosts (l,"","","","workstation-hosts")    
    response = h.getListTriplets()
    l.close()
    return dict(response=response)
示例#5
0
def getSIATIC():
    l=conecta()
    h = Hosts (l,"","","","siatic-hosts")
    response = h.getListTriplets()
    l.close()
    return dict(response=response)
示例#6
0
def getWorkstations():
    l = conecta()
    h = Hosts(l, "", "", "", "workstation-hosts")
    response = h.getListTriplets()
    l.close()
    return dict(response=response)
示例#7
0
def getSIATIC():
    l = conecta()
    h = Hosts(l, "", "", "", "siatic-hosts")
    response = h.getListTriplets()
    l.close()
    return dict(response=response)
示例#8
0
def getLTSPServers():
    l = conecta()
    h = Hosts(l, "", "", "", "ltsp-server-hosts")
    response = h.getListTriplets()
    l.close()
    return dict(response=response)