[ckan-changes] commit/ckanextiati: amercader: [spreadsheet] Nicer file name when downloading a publisher CSV file

Bitbucket commits-noreply at bitbucket.org
Fri Nov 11 14:18:51 UTC 2011


1 new commit in ckanextiati:


https://bitbucket.org/okfn/ckanextiati/changeset/6f06265cd92f/
changeset:   6f06265cd92f
user:        amercader
date:        2011-11-11 15:18:42
summary:     [spreadsheet] Nicer file name when downloading a publisher CSV file
affected #:  1 file

diff -r c13ecb426c2979cb92dbb3719ef486b32e065f2b -r 6f06265cd92fc5cd8a887fa5566e9a36f487f220 ckanext/iati/controllers/spreadsheet.py
--- a/ckanext/iati/controllers/spreadsheet.py
+++ b/ckanext/iati/controllers/spreadsheet.py
@@ -95,7 +95,7 @@
                 abort(403,'Permission denied')
 
 
-        file_name = publisher if publisher else self.authz_groups[0]
+        file_name = publisher if publisher else 'iati-registry-records'
         response.headers['Content-type'] = 'text/csv'
         response.headers['Content-disposition'] = 'attachment;filename=%s.csv' % str(file_name)
         return output

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