def search_post(session): if not search_form.validates(): return render.search(search_form, session.name) else: session.term = dict(name = "%" + search_form.d.buscar.upper() + "%") raise web.seeother('/results')
def search_get(session): return render.search(search_form, session.name, session.mode)