Exemplo n.º 1
0
def open_notebook(request):
  response = {'status': -1}

  notebook_id = request.GET.get('notebook')
  notebook = Notebook(document=Document2.objects.get(id=notebook_id))

  response['status'] = 0
  response['notebook'] = notebook.get_json()
  response['message'] = _('Notebook loaded successfully')
Exemplo n.º 2
0
Arquivo: api.py Projeto: shobull/hue
def open_notebook(request):
    response = {"status": -1}

    notebook_id = request.GET.get("notebook")
    notebook = Notebook(document=Document2.objects.get(id=notebook_id))

    response["status"] = 0
    response["notebook"] = notebook.get_json()
    response["message"] = _("Notebook loaded successfully")
Exemplo n.º 3
0
def open_notebook(request):
    response = {'status': -1}

    notebook_id = request.GET.get('notebook')
    notebook = Notebook(document=Document2.objects.get(id=notebook_id))

    response['status'] = 0
    response['notebook'] = notebook.get_json()
    response['message'] = _('Notebook saved !')

    return JsonResponse(response)
Exemplo n.º 4
0
Arquivo: api.py Projeto: RunnerDu/hue
def open_notebook(request):
  response = {'status': -1}

  notebook_id = request.GET.get('notebook')
  notebook = Notebook(document=Document2.objects.get(id=notebook_id))

  response['status'] = 0
  response['notebook'] = notebook.get_json()
  response['message'] = _('Notebook saved !')

  return JsonResponse(response)