Commit e87a4572 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use text/html rather than application/pdf at the moment. See the comment for more details.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1767 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e02199ca
...@@ -102,7 +102,16 @@ class PDFTemplate(ZopePageTemplate): ...@@ -102,7 +102,16 @@ class PDFTemplate(ZopePageTemplate):
# Default Attributes # Default Attributes
pdf_stylesheet = 'default_pdf_template' pdf_stylesheet = 'default_pdf_template'
content_type = 'application/pdf'
# XXX The content-type should be application/pdf, but if this is used, PageTemplate uses
# TALParser instead of HTMLTALParser. This generates a strange error due to the encoding problem.
# Because the XML declaration must specify ISO-8859-1 but PDFTemplate itself uses UTF-8.
# Once reportlab is fixed, we will be able to use UTF-8 in every place, then this problem will
# disappear...
#
# Simply speaking, reportlab is bad.
#content_type = 'application/pdf'
content_type = 'text/html'
# Management interface # Management interface
manage_options = ( ZopePageTemplate.manage_options + manage_options = ( ZopePageTemplate.manage_options +
......
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