Package elisa :: Package base_components :: Module playlist :: Class Playlist
[hide private]
[frames] | no frames]

Class Playlist

source code


Playlist

DOCME

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Initialize the Component's instance variables
source code
twisted.internet.defer.Deferred
loadmore(self, model, start=0, end='frontend')
Request new items to be loaded in the playlist.
source code
 
empty(self)
Empty the playlist of all its URIs.
source code
 
add_uri(self, uri, position=-1)
Add an URI to the playlist.
source code

Inherited from activity.Activity: get_model

Inherited from core.component.Component: clean, initialize, load_config, save_config

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
string name = 'playlist'
Component's name

Inherited from core.component.Component: checked, config_doc, default_config, id, plugin

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from core.component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Initialize the Component's instance variables
Overrides: core.component.Component.__init__

loadmore(self, model, start=0, end='frontend')

source code 
Request new items to be loaded in the playlist.
Parameters:
Returns: twisted.internet.defer.Deferred

add_uri(self, uri, position=-1)

source code 
Add an URI to the playlist.
Parameters:
  • uri (elisa.core.media_uri.MediaUri or list) - the uri to add. if uri is a list, it will be directly added to the list model.
  • position (int) - position of the list to update, -1 means appending to the end