libsaria: Added TODO idea to playlist

I want to do type checking after loading objects.  This can be done once
during storage.load_obj, rather than after load_obj
This commit is contained in:
Bryan Schumaker 2011-05-28 15:40:19 -04:00
parent 1bb0480c65
commit 114ac13c7a
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ song_set = set()
def load():
global song_list
plist_list = storage.load_obj("playlist", list)
# TODO: Can I do this check during load_obj???
if plist_list.__class__ != list:
plist_list = []
lock_plist()