Package elisa :: Package plugins :: Package bad :: Package xmlmenu :: Module xmltreemenu_activity :: Class XmltreemenuActivity
[hide private]
[frames] | no frames]

Class XmltreemenuActivity




Parses an XML description of a tree of media and creates the corresponding tree of Models.

DOCME MORE

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
clean(self)
Perform some cleanups and save the Component config back to application's config.
elisa.base_components.model.Model
get_model(self)
Return a model filled with the data generated by the activity.
 
handle_menu_entry(self, parent, menu_node)
 
initialize(self)
Initialize various variables internal to the Component.
 
loadmore(self, model)
 
unload(self, model)
Clear the children of the model

Inherited from core.component.Component: __init__, 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]
dict config_doc = {'menu_builders': 'Components used to build the m...
documentation for each option of the default configuration.
dict default_config = {'menu_builders': ['xmlmenu:activity_node_bui...
used when nothing found in Application's config
string name = 'xmltreemenu_activity'
Component's name

Inherited from core.component.Component: checked, 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]

clean(self)

 
Perform some cleanups and save the Component config back to application's config. This method should be called by the elisa.core.manager.Manager holding the component reference when it stops itself.
Overrides: core.component.Component.clean
(inherited documentation)

get_model(self)

 
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)

initialize(self)

 

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)

Class Variable Details [hide private]

config_doc

documentation for each option of the default configuration. Keys should be same as the ones in default_config and values should be strings
Type:
dict
Value:
{'menu_builders': 'Components used to build the menu',
 'xml_menu': 'Local path to the XML file containing the Elisa menu des\
cription'}

default_config

used when nothing found in Application's config
Type:
dict
Value:
{'menu_builders': ['xmlmenu:activity_node_builder',
                   'xmlmenu:locations_builder',
                   'xmlmenu:xdg_entry_builder',
                   'xmlmenu:playlist_node_builder',
                   'xmlmenu:menu_node_builder',
                   'xmlmenu:uri_node_builder'],
 'xml_menu': '/home/phil/.elisa/elisa_menu.xml'}