Jerome Alet <alet@librelogiciel.com> responded:
On Mon, Oct 14, 2002 at 03:15:50PM -0700, Dennis Allison wrote:
Content-Type: application/pdf Content-Disposition: inline; filename=foo.pdf
did you try my suggestion to replace "inline" with "attachment" ?
why can't you call your method like "something.pdf" , that's just a name after all ?
changing "inline" to "attachment" has no effect on the IE behavior. Removing the Content-Disposition header has no effect. I've not tried removing the Content-Type and everything else--but it's on the short list :-) Zope does does not support python external methods with the extension ".pdf". :-) Thanks for your help. When this one gets solved I'll write it up.
Dennis Allison wrote:
Jerome Alet <alet@librelogiciel.com> responded:
On Mon, Oct 14, 2002 at 03:15:50PM -0700, Dennis Allison wrote:
Content-Type: application/pdf Content-Disposition: inline; filename=foo.pdf
did you try my suggestion to replace "inline" with "attachment" ?
why can't you call your method like "something.pdf" , that's just a name after all ?
changing "inline" to "attachment" has no effect on the IE behavior. Removing the Content-Disposition header has no effect. I've not tried removing the Content-Type and everything else--but it's on the short list :-)
Zope does does not support python external methods with the extension ".pdf". :-)
Huh? Why is that? Anyway, Pull a traverse ;-) The easiest way would be to take a python script which calls the external method and use its ability to be called by traversal, i.e. yourserver/pdf_producer_calling_python_script/IE_is_cool_NOT.pdf HTH, oliver
On Mon, 14 Oct 2002, Dennis Allison wrote:
Jerome Alet <alet@librelogiciel.com> responded:
On Mon, Oct 14, 2002 at 03:15:50PM -0700, Dennis Allison wrote:
Content-Type: application/pdf Content-Disposition: inline; filename=foo.pdf
did you try my suggestion to replace "inline" with "attachment" ?
why can't you call your method like "something.pdf" , that's just a name after all ?
I have bad news for you. Go check the microsoft help site and search for content-disposition. That is not supported very well in IE and different patches for IE cause it to behave even differently. I think you are basically screwed for this. What I ended up doing was have a document that could accept a virtual file name by override __bobo_traverse__ in a python product and then ended up handing the system another html page with a meta refresh tag to redirect to that virtual object that the real object handed it the data back for. You also can't just redirect to that object directly since IE does not redirect to PDF and other formats other then html correctly which you can also verify by looking at support.microsoft.com Sorry but I have not found a better solution then this so far and would love to find a better one.
Dennis Allison wrote:
Jerome Alet <alet@librelogiciel.com> responded:
On Mon, Oct 14, 2002 at 03:15:50PM -0700, Dennis Allison wrote:
Content-Type: application/pdf Content-Disposition: inline; filename=foo.pdf
did you try my suggestion to replace "inline" with "attachment" ?
why can't you call your method like "something.pdf" , that's just a name after all ?
changing "inline" to "attachment" has no effect on the IE behavior. Removing the Content-Disposition header has no effect. I've not tried removing the Content-Type and everything else--but it's on the short list :-)
Zope does does not support python external methods with the extension ".pdf". :-)
Wrong. I've done pdf generation on the fly with an external method : Headers : REQUEST.RESPONSE.setHeader('Content-Length',len(pdfoutput)) REQUEST.RESPONSE.appendHeader('Content-Type','application/pdf') External method : choose an id with .pdf extension ; that's the only real method for that buggy Internet Exploder. Of course, this also works with Mozilla, Netscape, Opera, Konqueror ...
Thanks for your help. When this one gets solved I'll write it up.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Frederic De ZORZI - PimenTech http://www.pimentech.net 7bis, rue de LESSEPS - 75020 PARIS Tel : 01 43 56 05 00 - 06 63 18 08 00
participants (4)
-
De ZORZI Frederic -
Dennis Allison -
kosh@aesaeion.com -
Oliver Bleutgen