<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: Jonathan &lt;dev101@...&gt;<br>&amp;&amp;<br>From: Suresh V &lt;suresh_vv@...&gt;<br>
<br>&gt;In your script you could access the catalog as follows:<br>&gt; <br>&gt;&nbsp;&nbsp;&nbsp; afolder = context.restrictedTraverse('folderA/folderB/'+someLocalFolder)&nbsp;&nbsp;&nbsp; # pass 'someLocalFolder' as a parameter<br>&gt;&nbsp;&nbsp;&nbsp; catalog = afolder.Catalog&nbsp;&nbsp;&nbsp; # assuming you have named your ZCatalog 'Catalog'<br><br>The problem with this, is that this script is used at the base of a portal with several different Web sites, therefore, the root folder of each is different.<br><br>&gt;And where is mycontext defined? You will need a tal:define="mycontext here" or something.<br><br>I added the following:<br><br>&lt;div align="center" <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tal:define="mycontext here"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tal:condition="here/hasSearchEngine(mycontext)"&gt;<br><br>...but that didn't seem to help any:<br><br>Error Type: KeyError<br>Error Value: 'hasSearchEngine(mycontext)'<br><br>Concerning your comment
 about the except, this script was written by an employee of mine. I'm now picking up where he left off. I cleaned it up ;)<br>TIA,<br>Javier<br></div></div><br>

<hr size=1>Want to start your own business? Learn how on <a href="http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/r-index">Yahoo! Small Business.</a></body></html>