Serialising ListItem or changing __bases__
#1
I have recently tried to serialise a listitem using pickle to pass it between the addon and services processes of my addon. But an error occurs with the Label method in the listitem class; traceback says pickles problem is that it should be a string or unicode.

P.S. As I couldnt pickle the instances of ListItem, I have changed them to a generic class and am trying to add xbmcgui.ListItem to each instances __bases__. But you can only do that with classes, and type(xbmcgui.ListItem) returns 'type'.

What am I missing here?
Reply
#2
Not sure if C++ classes exposed via Swig (one of which is ListItem) can be treated as regular Python classes.
Reply

Logout Mark Read Team Forum Stats Members Help
Serialising ListItem or changing __bases__0