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())"
>
>
>

-- 



Reply via email to