Commit e201d322 authored by Jérome Perrin's avatar Jérome Perrin

use new method name


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42337 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f975b64c
...@@ -102,7 +102,7 @@ class DownloadableMixin: ...@@ -102,7 +102,7 @@ class DownloadableMixin:
RESPONSE.setHeader('Content-Type', mime) RESPONSE.setHeader('Content-Type', mime)
if output_format not in (VALID_TEXT_FORMAT_LIST + VALID_IMAGE_FORMAT_LIST): if output_format not in (VALID_TEXT_FORMAT_LIST + VALID_IMAGE_FORMAT_LIST):
# need to return it as attachment # need to return it as attachment
filename = self.getStandardFileName(format=format) filename = self.getStandardFilename(format=format)
RESPONSE.setHeader('Content-Disposition', RESPONSE.setHeader('Content-Disposition',
'attachment; filename="%s"' % filename) 'attachment; filename="%s"' % filename)
RESPONSE.setHeader('Accept-Ranges', 'bytes') RESPONSE.setHeader('Accept-Ranges', 'bytes')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment