Another mistake is here: http://web2py.com/books/default/chapter/29/6#Copy-data-from-one-db-into-another
hocalhost -> localhost (multiple times) And I also thing that this is wrong: postgresql:// -> postgres:// (multiple times) -rif miercuri, 15 august 2012, 16:33:18 UTC+3, Anthony a scris: > > Thanks for pointing this out. Note, the ")" should actually go after > (keyword): > > db(db.page.title.contains(keyword)).select().as_list() > > > Anthony > > On Wednesday, August 15, 2012 5:52:53 AM UTC-4, Frank Cheong wrote: >> >> Just spotted one typo in the middle of the Overview Chapter inside the >> xmlrpc section, ")" is missing at the end of code. >> >> >> 1. >> 2. >> 3. >> 4. >> 5. >> 6. >> 7. >> 8. >> 9. >> 10. >> >> service = Service() >> >> @service.xmlrpc >> def find_by(keyword): >> "finds pages that contain keyword for XML-RPC" >> return db(db.page.title.contains(keyword).select().as_list() >> >> def call(): >> "exposes all registered services, including XML-RPC" >> return service() >> >> >> whereas the final statement of the function find_by:- >> >> "return db(db.page.title.contains(keyword).select().as_list()" should be >> replaced by:- >> >> "return db(db.page.title.contains(keyword).select().as_list())" >> >> >> --