Proyecto

General

Perfil

« Anterior | Siguiente » 

Revisión 94

Completada alta de thinclients

Ver diferencias:

MainLoop.py
if command == "hosts":
from Plugins.Hosts import Hosts
import pdb
if request.args['action'][0] == "list":
h = Hosts (l,"","","","","")
response = h.list(request.args)
......
ip = ""
else:
ip = request.args ['ip'][0]
pdb.set_trace()
h = Hosts(l,request.args['name'][0],ip,request.args['mac'][0],request.args['group'][0],request.args['type'][0])
response = h.process(request.args['action'][0])
return json.dumps({"response" : response})

Exportar a: Unified diff