[mirrorbrain-commits] [mod_stats] r60 - /trunk/downloadstats/stats/views.py

From: <poeml_at_mirrorbrain.org>
Date: Wed, 16 Dec 2009 04:27:26 -0000
Author: poeml
Date: Wed Dec 16 05:27:25 2009
New Revision: 60

URL: http://svn.mirrorbrain.org/viewvc/mod_stats?rev=60&view=rev
Log:
use text/plain for CSV reports, and don't set Content-Disposition header -
it's much more convenient for testing if the report can be viewed in a browser

Modified:
    trunk/downloadstats/stats/views.py

Modified: trunk/downloadstats/stats/views.py
URL: http://svn.mirrorbrain.org/viewvc/mod_stats/trunk/downloadstats/stats/views.py?rev=60&r1=59&r2=60&view=diff
==============================================================================
--- trunk/downloadstats/stats/views.py (original)
+++ trunk/downloadstats/stats/views.py Wed Dec 16 05:27:25 2009
_at_@ -10,8 +10,8 @@
 #_at_cache_page(60*15)
 def stats_csv(request, year, month, day=None):
 
-    response = HttpResponse(mimetype='text/csv')
-    response['Content-Disposition'] = 'attachment; filename=%s%s%s.csv' % (year, month, day)
+    response = HttpResponse(mimetype='text/plain')
+    #response['Content-Disposition'] = 'attachment; filename=%s%s%s.csv' % (year, month, day or '')
 
     import csv
     writer = csv.writer(response)




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Wed Dec 16 2009 - 04:27:28 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT