예제 #1
0
def renderViewMsgPack(requestOptions, data):
    response = HttpResponse(content_type='application/x-msgpack')
    seriesInfo = [series.getInfo() for series in data]
    msgpack.dump(seriesInfo, response)
    return response
예제 #2
0
def renderViewMsgPack(requestOptions, data):
  response = HttpResponse(content_type='application/x-msgpack')
  seriesInfo = [series.getInfo() for series in data]
  msgpack.dump(seriesInfo, response, use_bin_type=True)
  return response