kivy/kivy — pull request #2567 by Zen-CODE (2014-10-09 17:20:31+00:00)
Title: Support for CompositeListItem selection initialization

Currently, it only seems possible to initialize a CompositeListItem with the first item selected using the 'allow_empty_selection=False' parameter to the adapter. This PR adds support for specifying any amount of items to be selected by default.

This gist can be used to demonstrate and test:
https://gist.github.com/Zen-CODE/db169c77416c78da12e2

It seems the CompositeListItem needs to manually delegate the initial selection to it's children.
The 'select' and 'unselect' events seem to be fired only on initialization (tested via print statements in the functions), so this seems like an optimal solution. The forced subclassing of 'SelectableView' ensures that the children will all have 'select' and 'unselect' methods to invoke, so there should be no issue with missing methods.