Commits

Sebastian Rahlf committed 5f8d2de

One should really try code snippets before posting them!

Comments (0)

Files changed (1)

 node = api.item_search('Books', Publisher='Galileo Press')
 
 # .pyval will convert the node content into int here
-total_results = root.Items.TotalResults.pyval
-total_pages = root.Items.TotalPages.pyval
+total_results = node.Items.TotalResults.pyval
+total_pages = node.Items.TotalPages.pyval
 
 # get all books from result set and
 # print author and title