From: yomguy <> Date: Sun, 13 May 2007 01:44:54 +0000 (+0000) Subject: Tried new stream function in web.py, but.... X-Git-Tag: 1.1~943 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=1a03524f4d3b890f62eacc587b357c1b748cba3f;p=telemeta.git Tried new stream function in web.py, but.... --- diff --git a/telemeta/views/web.py b/telemeta/views/web.py index 19acdf63..c2cf6e6d 100644 --- a/telemeta/views/web.py +++ b/telemeta/views/web.py @@ -107,8 +107,8 @@ class WebView(Component): stream = exporter.process(item.id, infile, metadata, []) - #response = HttpResponse(self.__file_stream(outfile),mimetype=mime_type) - response = HttpResponse(stream, mimetype = mime_type) + response = HttpResponse(self.__file_stream(outfile),mimetype=mime_type) + #response = HttpResponse(stream, mimetype = mime_type) response['Content-Disposition'] = 'attachment; filename="download.' + \ exporter.get_file_extension() + '"' return response