[Zope] MIME Problem
Brown Fox
bfox_69@yahoo.it
Mon, 12 Jun 2000 16:32:50 +0200 (CEST)
Hello all,
i'm following the thread on the mime type, adding my
own problem!
I have created a zclass where the index_html is:
Content-type: application/pdf
<dtml-let username="AUTHENTICATED_USER.getUserName()">
<dtml-in "SQL_get_priv(username=username)">
<dtml-if "Priv > PrivilegioFile">
<dtml-var MyView>
<dtml-else>
<HTML><BODY>
<P>
<CENTER>
You are not allowed to see this file!
</CENTER
<P>
</BODY></HTML>
</dtml-if>
</dtml-in>
</dtml-let>
Where MyView is an external python module:
def Test(self):
return self.data
This solution is not working, to be honest i've
checked it on NT2000 and it was perfect but on Win98 i
get a small icon saying that i'm missing something to
display the pdf file... If i delete the index_html
everything is ok, but without the initial check.
I don't understand why!
The content type is correct, i've also tried with
<dtml-call
"RESPONSE.setHeader('Content-Type','application/pdf')">
but the problem is the same.
Anyone can help me?
Thanks,
Bruno
______________________________________________________________________
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it