[ckan-changes] commit/ckanextiati: amercader: File name as string to avoid problems with mod_wsgi

Bitbucket commits-noreply at bitbucket.org
Mon Oct 24 14:50:28 UTC 2011


1 new changeset in ckanextiati:

http://bitbucket.org/okfn/ckanextiati/changeset/436362d8c8a9/
changeset:   436362d8c8a9
branch:      spreadsheet-support
user:        amercader
date:        2011-10-24 16:50:11
summary:     File name as string to avoid problems with mod_wsgi
affected #:  1 file (-1 bytes)

--- a/ckanext/iati/controllers/spreadsheet.py	Mon Oct 24 13:46:27 2011 +0100
+++ b/ckanext/iati/controllers/spreadsheet.py	Mon Oct 24 15:50:11 2011 +0100
@@ -87,7 +87,7 @@
 
         file_name = publisher if publisher else self.authz_groups[0]
         response.headers['Content-type'] = 'text/csv'
-        response.headers['Content-disposition'] = 'attachment;filename=%s.csv' % file_name
+        response.headers['Content-disposition'] = 'attachment;filename=%s.csv' % str(file_name)
         return output
 
     def upload(self):

Repository URL: https://bitbucket.org/okfn/ckanextiati/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list