<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 style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Maciej Wisniowski &lt;maciej.wisniowski@coig.katowice.pl&gt;<br><br><div>&gt;As far as I understand you have script (say it has id 'handle_404_scr')<br>&gt;that handles 404 errors in 'root' folder. In this script you have<br>&gt;something like:<br>&gt;&lt;div align="center"<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tal:define="mycontext here"<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tal:condition="here/hasSearchEngine(mycontext)"&gt;<br>&gt;<br>&gt;Yes? So how is this script called?<br><br>return 0<br><br>catalog = ''<br>try:<br>&nbsp;&nbsp;&nbsp; catalog = getattr(context,
 context.superValues('ZCatalog')[0].id)<br>except AttributeError:<br>&nbsp;&nbsp;&nbsp; pass<br>&nbsp;&nbsp;&nbsp; <br>if catalog:<br>&nbsp;&nbsp;&nbsp; return 1<br><br>&gt;I'm not sure what exactly is your case but you may try:<br>&gt;<br>&gt;&lt;div align="center"<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tal:condition="here/hasSearchEngine(here/aq_inner)"&gt;<br>&gt;<br>&gt;or just (without passing a parameter):<br>&gt;<br>&gt;&lt;div align="center"<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tal:condition="here/aq_inner/hasSearchEngine()"&gt;<br><br>None of that worked :( The latter gave me the same as without passing "aq_inner", while the former threw errors based on syntax.<br>TIA,<br>Javier<br></div></div></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>