]> git.parisson.com Git - telemeta.git/commitdiff
Tried new stream function in web.py, but....
authoryomguy <>
Sun, 13 May 2007 01:44:54 +0000 (01:44 +0000)
committeryomguy <>
Sun, 13 May 2007 01:44:54 +0000 (01:44 +0000)
telemeta/views/web.py

index 19acdf63a47d881bafb27b0c608357a2a9356d0d..c2cf6e6d9d53ce741d164423a719920a534f6816 100644 (file)
@@ -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