<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Forgive my ignorance, I have a
question.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If I set the 'security' setting in internet
options :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>'Open files based on content not file
extension' to <FONT color=#ff0000>Disable</FONT> </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and the try to access a page rendered by python
script then I get the following javascript error on the page:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>"This content might not be displayed properly.The
file was restricted because the content does'nt match its security
information"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But if I <FONT color=#ff0000>enable</FONT> the
settings in Internet Options-->Security, ie 'Open files based on
content not file extension' then the above error does not occur
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>There seems a conflict between the extension type
set by Zope and the MIME in Internet Explorer as it is seeing it
has a script.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT color=#ff0000>How can I resolve the error ,
keeping the property 'Open files based on content not file
extension' to</FONT> <FONT color=#ff0000>Disable</FONT> <FONT
color=#ff0000>?</FONT></FONT></DIV>
<DIV><FONT face=Arial color=#ff0000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#ff0000 size=2>Do I have to set the MIME types in
every file or it could be set at a single location in some zope configuration
file?</FONT></DIV>
<DIV><FONT face=Arial color=#ff0000 size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any help would be appreciated.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2>Sudesh</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT></DIV>
<DIV><FONT face=Arial size=2>From: "Dieter Maurer" <</FONT><A
href="mailto:dieter@handshake.de"><FONT face=Arial
size=2>dieter@handshake.de</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>To: "Garito" <</FONT><A
href="mailto:garito@sistes.net"><FONT face=Arial
size=2>garito@sistes.net</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Cc: "Lista Zope Internacional" <</FONT><A
href="mailto:zope@zope.org"><FONT face=Arial
size=2>zope@zope.org</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Friday, October 20, 2006 12:10
PM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: Re: [Zope] How to do...</FONT></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial
size=2>> Garito wrote at 2006-10-20 14:20 +0200:<BR>>>Dieter Maurer
escribió:<BR>>>> You remember I have warned you: "__getattr__" is
difficult and error prone!<BR>>>><BR>>>>
Even me, I have spend hours to understand why I get
occasional<BR>>>> "__getattr__" infinite
loops...<BR>>>> And I know, in principle, all the
potential caveats...<BR>>>><BR>>>> <BR>>>Can
you point me to some example/product to try to avoid this kind of
<BR>>>errors?<BR>> <BR>> It is quite difficult to learn all kinds of
problems from an example.<BR>> <BR>> I think I already have publicly
described my "__getattr__" problems.<BR>> Thus, you can search the mailing
list archive...<BR>> <BR>> An example product where "__getattr__" is used
is "BTreeFolder2".<BR>> <BR>> <BR>> -- <BR>> Dieter<BR>>
_______________________________________________<BR>> Zope maillist
- </FONT><A href="mailto:Zope@zope.org"><FONT face=Arial
size=2>Zope@zope.org</FONT></A><BR><FONT face=Arial size=2>> </FONT><A
href="http://mail.zope.org/mailman/listinfo/zope"><FONT face=Arial
size=2>http://mail.zope.org/mailman/listinfo/zope</FONT></A><BR><FONT face=Arial
size=2>> ** No cross posts or HTML encoding! **<BR>>
(Related lists - <BR>> </FONT><A
href="http://mail.zope.org/mailman/listinfo/zope-announce"><FONT face=Arial
size=2>http://mail.zope.org/mailman/listinfo/zope-announce</FONT></A><BR><FONT
face=Arial size=2>> </FONT><A
href="http://mail.zope.org/mailman/listinfo/zope-dev"><FONT face=Arial
size=2>http://mail.zope.org/mailman/listinfo/zope-dev</FONT></A><FONT face=Arial
size=2> )</FONT></BODY></HTML>