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

annonce title_or_id as filename instead of id


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5573 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent adb1ed3e
...@@ -166,7 +166,7 @@ class PDFTemplate(ZopePageTemplate): ...@@ -166,7 +166,7 @@ class PDFTemplate(ZopePageTemplate):
if request and not batch_mode: if request and not batch_mode:
request.RESPONSE.setHeader('Content-Type','application/pdf') request.RESPONSE.setHeader('Content-Type','application/pdf')
request.RESPONSE.setHeader('Content-Length',len(pdf)) request.RESPONSE.setHeader('Content-Length',len(pdf))
request.RESPONSE.setHeader('Content-Disposition','inline;filename=%s.pdf' % self.id) request.RESPONSE.setHeader('Content-Disposition','inline;filename=%s.pdf' % self.title_or_id())
return pdf return pdf
......
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