<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>From: Suresh V &lt;suresh_vv@...&gt;<br><br>&gt;1. Are you using "container" rather than "context" in your script? <br>&gt;2. You can pass your context as a "mycontext" parameter to your script.<br><br>I have this line of code in my page template for handling the 404 errors:<br><br>&lt;div align="center" tal:condition="here/hasSearchEngine"&gt;<br><br>I changed it thus:<br><br>&lt;div align="center" tal:condition="here/hasSearchEngine(mycontext)"&gt;<br><br>I tested the following script with "mycontext" as a passed parameter:<br><br>return 0<br><br>catalog = ''<br>try:<br>&nbsp;&nbsp;&nbsp; catalog = getattr(mycontext, mycontext.superValues('ZCatalog')[0].id)<br>except:<br>&nbsp;&nbsp;&nbsp; pass<br>&nbsp;&nbsp;&nbsp; <br>if catalog:<br>&nbsp;&nbsp;&nbsp; return 1<br><br>This threw an error concerning
 "mycontext".<br>TIA,<br>Javier<br></div></div><br>
<hr size=1>Cheap Talk? <a href="http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com">Check out</a> Yahoo! Messenger's low PC-to-Phone call rates.</body></html>