Pagination not working in 0.2.5a1

Issue #30 resolved
Anonymous created an issue

I installed 0.2.5a1 using easy_install on linux, but pagination doesn't appear to work. So I uninstalled and tried 0.2.5 instead (which I have on my Windows 7 development machine) and that works fine.

Comments (7)

  1. Anonymous

    Gah! Sorry. I've changed all the code and modules over now.

    I was only getting one page of results back when using 0.2.5a1 and used the following script to see what was being returned. With 0.2.5a1 the normal response from Amazon is returned. But of course, that isn't what we want, because that means that the pagination isn't working.

    results = api.item_search("All", Keywords="Harry Potter")
    print etree.tostring(results, pretty_print=True)

    However, 0.2.5 correctly brings up the following error, showing that it :

    File "lxml.etree.pyx", line 2865, in lxml.etree.tostring (src/lxml/lxml.etree.c:53894)
    TypeError: Type 'LxmlItemSearchPaginator' cannot be serialized.

    I suppose you could also just do:

    results = api.item_search("All", Keywords="Harry Potter")
    print results

    and you'd expect to get the pagination instance back:

    <amazonproduct.paginators.LxmlItemSearchPaginator object at 0x02BE64B0>
  2. Sebastian Rahlf repo owner

    That makes sense. 0.2.5a1 was supposed to be the first alpha version of the upcoming release 0.2.5. It did not yet have result pagination built in (0.2.5 does). Looks like sloppy release management.

    Did this solve your problems?

  3. Log in to comment