You have a syntax error in fony_by(keyword): return db(db.page.title.contains(keyword).select().as_list()
Should be: return db(db.page.title.contains(keyword)).select().as_list() You forgot the closing parenthesis before .select().
You have a syntax error in fony_by(keyword): return db(db.page.title.contains(keyword).select().as_list()
Should be: return db(db.page.title.contains(keyword)).select().as_list() You forgot the closing parenthesis before .select().