Skip to content

Type 'SearchPaginator' cannot be serialized. #54

Description

@redtoad

Originally reported by guosen xu (Bitbucket: dai31, GitHub: Unknown)


Q1:

#!python
result = api.item_search('Toys', Keywords='Rocket')
print result.results
print result.pages
print result.current

is ok!

but:

#!python

print etree.tostring(result)
#or
print etree.tostring(results, pretty_print=True)

Will be an error: Type 'SearchPaginator' cannot be serialized.


Q2:

#!python

for item in result:
     tmp = etree.tostring(item)
     print tmp

If something wrong happens to traverse the midway, how should I continue to traverse?

Thanks!


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions