Exemplo n.º 1
0
def netconf_read(request):
	if is_signed_in(request):
		return render_to_response('ip.html',{'netinfo':netconf.read()})
	return HttpResponseRedirect('/')
Exemplo n.º 2
0
def read(request):
  inf = etree.tostring(netconf.read(), encoding='UTF-8', xml_declaration=True, pretty_print=True)
  return HttpResponse(inf,mimetype='text/xml')