Esempio n. 1
0
def enable(request, name):
    """
    Enable a service.
    """

    result = set_enabled(name, True, request.user.username)
    return HttpResponse(json.dumps(result), content_type="application/json")
Esempio n. 2
0
def disable(request, name):
    """
    Disable a service.
    """

    result = set_enabled(name, False, request.user.username)
    return HttpResponse(json.dumps(result), mimetype="application/json")
Esempio n. 3
0
def disable(request, name):
    """
    Disable a service.
    """

    result = set_enabled(name, False, request.user.username)
    return HttpResponse(json.dumps(result), mimetype="application/json")
Esempio n. 4
0
def disable(request, name):
    """
    Disable a service.
    """

    request.user._setup()
    result = set_enabled(name, False, request.user)
    return HttpResponse(json.dumps(result), content_type='application/json')
Esempio n. 5
0
def disable(request, name):
    """
    Disable a service.
    """

    request.user._setup()
    result = set_enabled(name, False, request.user)
    return HttpResponse(json.dumps(result), content_type='application/json')