Thanks Ross. Found that this morning. It's a typo in the book.
For future readers finding this post on a search; Make sure you put the
closing paren in the correct spot or your new error is a bit more
substantial. (Python shell returns an error saying, 'Query' object has no
attribute '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().
2 matches
Mail list logo