예제 #1
0
def save_to_cliboard(request):
    object = LogsClipboard(name = request.POST['name'],
                           notes = request.POST['notes'],
                           logs = request.POST['logs'],
                           log_file = LogFile.objects\
                           .get(id=int(request.POST['file'])))
    object.save()
    return HttpResponse(_('loglines_saved'), mimetype = 'text/html')
예제 #2
0
def save_to_cliboard(request):
    object = LogsClipboard(name = request.POST['name'],
                           notes = request.POST['notes'],
                           logs = request.POST['logs'],
                           log_file = LogFile.objects\
                           .get(id=int(request.POST['file'])))
    object.save()
    return HttpResponse(_('loglines_saved'), mimetype='text/html')
예제 #3
0
def save_to_cliboard(request):
    object = LogsClipboard(
        name=request.POST["name"],
        notes=request.POST["notes"],
        logs=request.POST["logs"],
        log_file=LogFile.objects.get(id=int(request.POST["file"])),
    )
    object.save()
    return HttpResponse(_("loglines_saved"), mimetype="text/html")