[gnome-music/wip/mschraal/core: 71/164] coremodel: Add some oversight doc



commit 4fda29979de7555dbd7962008574efa2020679fe
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]