Beispiel #1
0
def systemlist(request):
    params = _retrievecmddict(request)
    try:
        _checkkeys(params.keys(), ['name'])
        res = retrievesystemdata(params)
    except ValueError as e:
        return HttpResponseBadRequest(HttpResponse(content=e))
    return HttpResponse(json.dumps(res), mimetype="application/json")
Beispiel #2
0
def systemlist(request):
    params = _retrievecmddict(request)
    try:
        _checkkeys(params.keys(), ['name'])
        res = retrievesystemdata(params)
    except ValueError as e:
        return HttpResponseBadRequest(HttpResponse(content=e))
    return HttpResponse(json.dumps(res), mimetype="application/json")
Beispiel #3
0
def systemlistweb(request):
    params = _retrievecmddict(request)
    try:
        _checkkeys(params.keys(), ['name'])
        res = retrievesystemdata(params)
    except ValueError as e:
        return HttpResponseBadRequest(HttpResponse(content=e))
    return render_to_response("magnets/magnets.html", res)
Beispiel #4
0
def systemlistweb(request):
    params = _retrievecmddict(request)
    try:
        _checkkeys(params.keys(), ['name'])
        res = retrievesystemdata(params)
    except ValueError as e:
        return HttpResponseBadRequest(HttpResponse(content=e))
    return render_to_response("magnets/magnets.html", res)