From: <tmz...@us...> - 2007-07-31 21:20:36
|
Revision: 1663 http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1663&view=rev Author: tmzullinger Date: 2007-07-31 14:20:27 -0700 (Tue, 31 Jul 2007) Log Message: ----------- ignore reserved (and chapterdata) attributes which are returned as gpointers Modified Paths: -------------- libgpod/trunk/bindings/python/ipod.py Modified: libgpod/trunk/bindings/python/ipod.py =================================================================== --- libgpod/trunk/bindings/python/ipod.py 2007-07-31 20:42:54 UTC (rev 1662) +++ libgpod/trunk/bindings/python/ipod.py 2007-07-31 21:20:27 UTC (rev 1663) @@ -286,7 +286,10 @@ # Note we don't free the underlying structure, as it's still used # by the itdb. - _proxied_attributes = [k for k in gpod._Itdb_Track.__dict__.keys() if not k.startswith("_")] + _proxied_attributes = [k for k in gpod._Itdb_Track.__dict__.keys() + if not (k.startswith("_") or + k.startswith("reserved") or + k == "chapterdata")] def __init__(self, filename=None, proxied_track=None, podcast=False, ownerdb=None): @@ -898,7 +901,8 @@ class Photo: """A photo in an iTunes Photo database.""" - _proxied_attributes = [k for k in gpod._Itdb_Artwork.__dict__.keys() if not k.startswith("_")] + _proxied_attributes = [k for k in gpod._Itdb_Artwork.__dict__.keys() + if not (k.startswith("_") or k.startswith("reserved"))] def __init__(self, filename=None, proxied_photo=None, ownerdb=None): @@ -964,7 +968,8 @@ class Thumbnail: """A thumbnail in an Photo.""" - _proxied_attributes = [k for k in gpod._Itdb_Thumb.__dict__.keys() if not k.startswith("_")] + _proxied_attributes = [k for k in gpod._Itdb_Thumb.__dict__.keys() + if not (k.startswith("_") or k.startswith("reserved"))] def __init__(self, proxied_thumbnail=None, ownerobject=None): """Create a thumbnail object.""" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |