Package elisa :: Package plugins :: Package bad :: Package xmlmenu :: Package xmlmenu_components :: Module xdg_entry_builder :: Class XdgEntryBuilder
[hide private]
[frames] | no frames]

Class XdgEntryBuilder




Build MenuEntries for the type 'xdg_menu', 'xdg_desktop_node', 'xdg_desktop_path'

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
_got_directory_list(self, list, parent, path)
 
_node_from_desktop_file(self, path)
returns a Deferred with the model (contaning already an action) as callback result.
twisted.internet.defer.Deferred
build_menu_entry(self, parent, node_xml)
Fills in parent with models created from the XML description xml_node.
 
menu_entry_identifiers__get(self)

Inherited from core.component.Component: __init__, 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 = 'xdg_entry_builder'
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 menu_entry_builder.MenuEntryBuilder: activity, model_configs

Inherited from core.component.Component: config, path

Properties [hide private]
  menu_entry_identifiers
MenuEntry identifiers it can handle; in the XML it is the attribute 'type' of the 'MenuEntry' tags

Inherited from object: __class__

Method Details [hide private]

_node_from_desktop_file(self, path)

 
returns a Deferred with the model (contaning already an action) as callback result. If the model could not been created the callback result is a None

build_menu_entry(self, parent, node_xml)

 

Fills in parent with models created from the XML description xml_node.

If the created models have an attribute 'xml_tag' containing a cElementTree, the activity is trying to find a suitable menu_component for its children again at loadmore. Don't forget that in that case the models needs to be marked as having children.
Returns: twisted.internet.defer.Deferred
the callback of this Deferred is a list of the created models
Overrides: menu_entry_builder.MenuEntryBuilder.build_menu_entry
(inherited documentation)

menu_entry_identifiers__get(self)

 
Overrides: menu_entry_builder.MenuEntryBuilder.menu_entry_identifiers__get

Property Details [hide private]

menu_entry_identifiers

MenuEntry identifiers it can handle; in the XML it is the attribute 'type' of the 'MenuEntry' tags
Get Method:
elisa.plugins.bad.xmlmenu.xmlmenu_components.xdg_entry_builder.XdgEntryBuilder.menu_entry_identifiers__get(self)
Set Method:
'frontend'
Delete Method:
'frontend'