projects
/
htsworkflow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename HttpResponse parameter mimetype to content_type
[htsworkflow.git]
/
htsworkflow
/
frontend
/
samples
/
views.py
diff --git
a/htsworkflow/frontend/samples/views.py
b/htsworkflow/frontend/samples/views.py
index 2e0b07d41db09053043ceaebde06c8ce35830ebd..fcd5314e65a4de0e1beabb16d7716330896f2615 100644
(file)
--- a/
htsworkflow/frontend/samples/views.py
+++ b/
htsworkflow/frontend/samples/views.py
@@
-230,10
+230,10
@@
def result_fc_cnm_eland_lane(request, flowcell_id, cnm, lane):
filepath = erd[lane]
#f = opener.autoopen(filepath, 'r')
filepath = erd[lane]
#f = opener.autoopen(filepath, 'r')
- # return HttpResponse(f,
mime
type="application/x-elandresult")
+ # return HttpResponse(f,
content_
type="application/x-elandresult")
f = open(filepath, 'r')
f = open(filepath, 'r')
- return HttpResponse(f,
mime
type='application/x-bzip2')
+ return HttpResponse(f,
content_
type='application/x-bzip2')
@@
-276,7
+276,7
@@
def bedfile_fc_cnm_eland_lane(request, flowcell_id, cnm, lane, ucsc_compatible=F
if ucsc_compatible:
return HttpResponse(bedgen)
else:
if ucsc_compatible:
return HttpResponse(bedgen)
else:
- return HttpResponse(bedgen,
mime
type="application/x-bedfile")
+ return HttpResponse(bedgen,
content_
type="application/x-bedfile")
def _summary_stats(flowcell_id, lane_id, library_id):
def _summary_stats(flowcell_id, lane_id, library_id):
@@
-526,7
+526,7
@@
def library_json(request, library_id):
raise Http404
lib_json = json.dumps(lib)
raise Http404
lib_json = json.dumps(lib)
- return HttpResponse(lib_json,
mime
type='application/json')
+ return HttpResponse(lib_json,
content_
type='application/json')
@csrf_exempt
def species_json(request, species_id):
@csrf_exempt
def species_json(request, species_id):