[gnome-music/wip/mschraal/core: 69/177] coremodel: Add some oversight doc



commit 218a9b14cb2feb93a0005b1f39f6400d911e5f37
Author: Marinus Schraal <mschraal gnome org>
Date:   Wed Jun 19 23:39:58 2019 +0200

    coremodel: Add some oversight doc

 gnomemusic/coremodel.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/gnomemusic/coremodel.py b/gnomemusic/coremodel.py
index 59eb33f4..fe057a31 100644
--- a/gnomemusic/coremodel.py
+++ b/gnomemusic/coremodel.py
@@ -11,6 +11,19 @@ from gnomemusic.grilo import grilo
 from gnomemusic.player import PlayerPlaylist
 from gnomemusic.widgets.songwidget import SongWidget
 
+# The basic premisis is that an album (CoreArtistAlbum) consist of a
+# number of discs (CoreDisc) which contain a number of songs
+# (CoreSong). All discs are a filtered Gio.Listmodel of all the songs
+# available in the master Gio.ListModel.
+#
+# CoreArtistAlbum and CoreDisc contain a Gio.ListModel of the child
+# object.
+#
+# CoreArtistAlbum(s) => CoreDisc(s) => CoreSong(s)
+#
+# For the playlist model, the CoreArtist or CoreAlbum derived discs are
+# flattened and recreated as a new model. This is to allow for multiple
+# occurences of the same song: same grilo id, but unique object.
 
 class CoreDisc(GObject.GObject):
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]