Revisión 75
Añadido por Francisco Damián Méndez Palma hace alrededor de 14 años
MainLoop.py | ||
---|---|---|
|
||
# Gestion de Grupos
|
||
if command == "hosts":
|
||
|
||
from Plugins.Hosts import Hosts
|
||
|
||
|
||
if request.args['action'][0] == "list":
|
||
h = Hosts (l,"","","","")
|
||
response = h.list(request.args)
|
||
... | ... | |
#print "Encendiendo host "+h.getName()
|
||
#h.wakeup()
|
||
return json.dumps(response)
|
||
|
||
elif request.args['action'][0] == "getThinclientGroups":
|
||
h = Hosts (l,"","","","")
|
||
response = h.getThinclientGroups ()
|
||
return json.dumps({"response" : response})
|
||
else:
|
||
if request.args ['type'][0] == 'thinclient':
|
||
ip = ""
|
Exportar a: Unified diff
Preparando alta de thinclients