Пример #1
0
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')
Пример #2
0
def search_get(session):
	return render.search(search_form, session.name, session.mode)