<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 <maciej.wisniowski@coig.katowice.pl><br><br><div>>As far as I understand you have script (say it has id 'handle_404_scr')<br>>that handles 404 errors in 'root' folder. In this script you have<br>>something like:<br>><div align="center"<br>> tal:define="mycontext here"<br>> tal:condition="here/hasSearchEngine(mycontext)"><br>><br>>Yes? So how is this script called?<br><br>return 0<br><br>catalog = ''<br>try:<br> catalog = getattr(context,
context.superValues('ZCatalog')[0].id)<br>except AttributeError:<br> pass<br> <br>if catalog:<br> return 1<br><br>>I'm not sure what exactly is your case but you may try:<br>><br>><div align="center"<br>> tal:condition="here/hasSearchEngine(here/aq_inner)"><br>><br>>or just (without passing a parameter):<br>><br>><div align="center"<br>> tal:condition="here/aq_inner/hasSearchEngine()"><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>