Revision: 1608
http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1608&view=rev
Author: nicholas
Date: 2007-06-28 03:46:59 -0700 (Thu, 28 Jun 2007)
Log Message:
-----------
Remove hard coding of _proxied_attributes
Modified Paths:
--------------
libgpod/trunk/ChangeLog
libgpod/trunk/bindings/python/ipod.py
Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog 2007-06-27 22:19:28 UTC (rev 1607)
+++ libgpod/trunk/ChangeLog 2007-06-28 10:46:59 UTC (rev 1608)
@@ -1,3 +1,8 @@
+2007-06-28 Nicholas Piper <nicholas at users.sourceforge.net>
+
+ * bindings/python/ipod.py: Remove hard-coding of
+ Track/Artwork/Album attributes
+
2007-06-23 Todd Zullinger <tmzullinger at users.sourceforge.net>
* configure.ac:
Modified: libgpod/trunk/bindings/python/ipod.py
===================================================================
--- libgpod/trunk/bindings/python/ipod.py 2007-06-27 22:19:28 UTC (rev
1607)
+++ libgpod/trunk/bindings/python/ipod.py 2007-06-28 10:46:59 UTC (rev
1608)
@@ -277,21 +277,7 @@
# Note we don't free the underlying structure, as it's still used
# by the itdb.
- _proxied_attributes =
("title","ipod_path","album","artist","genre","filetype",
-
"comment","category","composer","grouping","description",
-
"podcasturl","podcastrss","chapterdata","subtitle","id",
- "size","tracklen","cd_nr","cds","track_nr","tracks",
-
"bitrate","samplerate","samplerate_low","year","volume",
-
"soundcheck","time_added","time_played","time_modified",
- "bookmark_time","rating","playcount","playcount2",
- "recent_playcount","transferred","BPM","app_rating",
-
"type1","type2","compilation","starttime","stoptime",
-
"checked","dbid","drm_userid","visible","filetype_marker",
- "artwork_count","artwork_size","samplerate2",
"remember_playback_position",
- "time_released","has_artwork","flag4",
"skip_when_shuffling",
-
"lyrics_flag","movie_flag","mark_unplayed","samplecount",
-
"chapterdata_raw","chapterdata_raw_length","artwork",
- "usertype")
+ _proxied_attributes = [k for k in gpod._Itdb_Track.__dict__.keys() if not
k.startswith("_")]
def __init__(self, filename=None,
proxied_track=None, podcast=False, ownerdb=None):
@@ -853,7 +839,7 @@
class Photo:
"""A photo in an iTunes Photo database."""
- _proxied_attributes =
("id","creation_date","digitized_date","artwork_size")
+ _proxied_attributes = [k for k in gpod._Itdb_Artwork.__dict__.keys() if
not k.startswith("_")]
def __init__(self, filename=None,
proxied_photo=None, ownerdb=None):
@@ -916,8 +902,7 @@
class Thumbnail:
"""A thumbnail in an Photo."""
- _proxied_attributes =
("type","filename","rotation","offset","size","width","height",
- "horizontal_padding", "vertical_padding")
+ _proxied_attributes = [k for k in gpod._Itdb_Thumb.__dict__.keys() if not
k.startswith("_")]
def __init__(self, proxied_thumbnail=None, ownerphoto=None):
"""Create a thumbnail object."""
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2