<!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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If I set the 'security' setting&nbsp; in internet 
options :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>'Open files based on content not file 
extension'&nbsp;&nbsp; to <FONT color=#ff0000>Disable</FONT>&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>But if I <FONT color=#ff0000>enable</FONT> the 
settings in Internet Options--&gt;Security, ie&nbsp; 'Open files based on 
content not file extension'&nbsp; then the above&nbsp;error does not occur&nbsp; 
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>There seems a conflict between the extension type 
set by Zope and the MIME&nbsp;in&nbsp;Internet Explorer as it&nbsp;is seeing it 
has a script.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT color=#ff0000>How can I resolve the error , 
keeping the property &nbsp;'Open files based on content not file 
extension'&nbsp;&nbsp; to</FONT> <FONT color=#ff0000>Disable</FONT>&nbsp; <FONT 
color=#ff0000>?</FONT></FONT></DIV>
<DIV><FONT face=Arial color=#ff0000 size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any help would be appreciated.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT></DIV>
<DIV><FONT face=Arial size=2>From: "Dieter Maurer" &lt;</FONT><A 
href="mailto:dieter@handshake.de"><FONT face=Arial 
size=2>dieter@handshake.de</FONT></A><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>To: "Garito" &lt;</FONT><A 
href="mailto:garito@sistes.net"><FONT face=Arial 
size=2>garito@sistes.net</FONT></A><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>Cc: "Lista Zope Internacional" &lt;</FONT><A 
href="mailto:zope@zope.org"><FONT face=Arial 
size=2>zope@zope.org</FONT></A><FONT face=Arial size=2>&gt;</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>&gt; Garito wrote at 2006-10-20 14:20 +0200:<BR>&gt;&gt;Dieter Maurer 
escribió:<BR>&gt;&gt;&gt; You remember I have warned you: "__getattr__" is 
difficult and error prone!<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; 
Even me, I have spend hours to understand why I get 
occasional<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; "__getattr__" infinite 
loops...<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; And I know, in principle, all the 
potential caveats...<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;&nbsp;&nbsp; <BR>&gt;&gt;Can 
you point me to some example/product to try to avoid this kind of 
<BR>&gt;&gt;errors?<BR>&gt; <BR>&gt; It is quite difficult to learn all kinds of 
problems from an example.<BR>&gt; <BR>&gt; I think I already have publicly 
described my "__getattr__" problems.<BR>&gt; Thus, you can search the mailing 
list archive...<BR>&gt; <BR>&gt; An example product where "__getattr__" is used 
is "BTreeFolder2".<BR>&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; Dieter<BR>&gt; 
_______________________________________________<BR>&gt; Zope maillist&nbsp; 
-&nbsp; </FONT><A href="mailto:Zope@zope.org"><FONT face=Arial 
size=2>Zope@zope.org</FONT></A><BR><FONT face=Arial size=2>&gt; </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>&gt; **&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp; **<BR>&gt; 
(Related lists - <BR>&gt;&nbsp;</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>&gt;&nbsp;</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>