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

Base_download was getting RESPONSE from RESPONSE but anyway if you go in this...

Base_download was getting RESPONSE from RESPONSE but anyway if you go in this branch, it's likely because hasattr is false due to Unauthorized



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17138 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ff86dd7
...@@ -74,7 +74,7 @@ response = request.RESPONSE\n ...@@ -74,7 +74,7 @@ response = request.RESPONSE\n
if hasattr(context,\'getContentType\'):\n if hasattr(context,\'getContentType\'):\n
response.setHeader(\'Content-type\', context.getContentType())\n response.setHeader(\'Content-type\', context.getContentType())\n
else:\n else:\n
response.RESPONSE.setHeader(\'Content-type\', context.getFormat())\n response.setHeader(\'Content-type\', context.getFormat())\n
\n \n
file_name = context.getSourceReference() or context.getTitle() or context.getId()\n file_name = context.getSourceReference() or context.getTitle() or context.getId()\n
response.setHeader(\'Content-disposition\', \'attachment;; filename="%s"\' % file_name)\n response.setHeader(\'Content-disposition\', \'attachment;; filename="%s"\' % file_name)\n
......
544 545
\ No newline at end of file \ No newline at end of file
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