summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorTodd Zullinger <tmzullinger@users.sourceforge.net>2007-07-31 21:20:27 +0000
committerTodd Zullinger <tmzullinger@users.sourceforge.net>2007-07-31 21:20:27 +0000
commitae2d4ae94db0dc789a61f44043fdb9ba9ddf5abe (patch)
tree6d6c581c2b22e826ee0ed84892fa95c04c3542b9 /bindings
parent6dda4b59bb0f788da38823a035f28d4c515a38be (diff)
downloadlibgpod-ae2d4ae94db0dc789a61f44043fdb9ba9ddf5abe.tar.gz
libgpod-ae2d4ae94db0dc789a61f44043fdb9ba9ddf5abe.tar.xz
libgpod-ae2d4ae94db0dc789a61f44043fdb9ba9ddf5abe.zip
ignore reserved (and chapterdata) attributes which are returned as gpointers
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1663 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/ipod.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/bindings/python/ipod.py b/bindings/python/ipod.py
index d088eba..6279ee8 100644
--- a/bindings/python/ipod.py
+++ b/bindings/python/ipod.py
@@ -286,7 +286,10 @@ class Track:
# 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 PhotoAlbum:
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 Photo:
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."""