<dtml-if "_.has_key('expr')">
this is slow.. re-implement in python?
<dtml-if ".has_key('source') and source == 'jump'">
we are doing a jump
<dtml-if "expr == ''">
blank expr - jump to front page
<dtml-call "RESPONSE.redirect(URL1)">
blank expr - let the search list all
<dtml-elif "expr[0] == '!'">
skip jumping, just do a search
<dtml-call "REQUEST.set('expr',expr[1:])">
search for an id beginning with expr
<dtml-in "aq_parent.objectValues(spec='Zwiki Page')" sort=id reverse>
<dtml-if ".string.find(.string.lower(id()),.string.lower(expr)) == 0">
found one - jump there
can't find url_quote
<dtml-call "RESPONSE.redirect(URL1 + '/' + _.string.replace(id(),' ','%20'))">
no ids matched - fall through and do a search