def renderViewMsgPack(requestOptions, data): response = HttpResponse(content_type='application/x-msgpack') seriesInfo = [series.getInfo() for series in data] msgpack.dump(seriesInfo, response) return response
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