summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authortmzullinger <tmzullinger@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2007-07-31 21:20:27 +0000
committertmzullinger <tmzullinger@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2007-07-31 21:20:27 +0000
commit98104c94f825e1283d030beb28a5018d7df72506 (patch)
tree6d6c581c2b22e826ee0ed84892fa95c04c3542b9 /bindings
parente237c46108b4686a3d26fe082295d1bf0b042f0b (diff)
downloadlibgpod-98104c94f825e1283d030beb28a5018d7df72506.tar.gz
libgpod-98104c94f825e1283d030beb28a5018d7df72506.tar.xz
libgpod-98104c94f825e1283d030beb28a5018d7df72506.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."""