docs: def calc(request, calc_id):
      """
      Get a JSON blob containing all of parameters for the given calculation
      (specified by ``calc_id``). Also includes the current job status (
      executing, complete, etc.).
      """
      try:
          info = logs.dbcmd('calc_info', calc_id)
          if not utils.user_has_permission(request, info['user_name']):
              return HttpResponseForbidden()
      except dbapi.NotFound:
          return HttpResponseNotFound()
      return HttpResponse(content=json.dumps(info), content_type=JSON)