Package elisa :: Package plugins :: Package base :: Package playlists :: Module default_playlist :: Class DefaultPlaylist
[hide private]
[frames] | no frames]

Class DefaultPlaylist

source code


Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Initialize the Component's instance variables
source code
 
initialize(self)
Initialize various variables internal to the Component.
source code
elisa.base_components.model.Model
get_model(self)
Return a model filled with the data generated by the activity.
source code
twisted.internet.defer.Deferred
loadmore(self, uri, model, start=0, end='frontend')
Request new items to be loaded in the playlist.
source code
 
_walk(*args, **kwargs)
This methods walks through an URI directory resource between start and end, skips directory entries and update the given model with file entries found.
 
_need_interrupt(self) source code
 
empty(self)
Clear playlist's
source code
 
add_uri(self, uri, position=-1)
Adds an uri to the Playlist
source code

Inherited from core.component.Component: clean, 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 = 'default_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: base_components.playlist.Playlist.__init__
(inherited documentation)

initialize(self)

source code 

Initialize various variables internal to the Component.

This method is called by the plugin_registry after the component's config has been loaded.

Override this method if you need to perform some initializations that would normally go in Component's constructor but can't be done there because they require access to the component's config.
Overrides: core.component.Component.initialize
(inherited documentation)

get_model(self)

source code 
Return a model filled with the data generated by the activity.
Returns: elisa.base_components.model.Model
Overrides: base_components.activity.Activity.get_model
(inherited documentation)

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

source code 
Request new items to be loaded in the playlist.
Returns: twisted.internet.defer.Deferred
Overrides: base_components.playlist.Playlist.loadmore
(inherited documentation)

_walk(*args, **kwargs)

 
This methods walks through an URI directory resource between start and end, skips directory entries and update the given model with file entries found.
Decorators:
  • @defer.deferredGenerator

empty(self)

source code 
Clear playlist's
Overrides: base_components.playlist.Playlist.empty

add_uri(self, uri, position=-1)

source code 
Adds an uri to the Playlist
Parameters:
  • uri (elisa.core.media_uri.MediaUri) - 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
Overrides: base_components.playlist.Playlist.add_uri