Package elisa :: Package core :: Package tests :: Module test_plugin_registry :: Class PluginRegistryMock

Class PluginRegistryMock

source code


Instance Methods
 
__init__(self, *args, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

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

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

    Inherited from plugin_registry.PluginRegistry
elisa.core.component.Component or a subclass
create_component(self, path, config=None, **kwargs)
Create a component given its path.
source code
twisted.internet.defer.Deferred
disable_plugin(self, plugin_name, permanent=False)
Disable a plugin.
source code
elisa.core.utils.defer.Deferred
download_plugin(self, plugin)
Download one plugin.
source code
twisted.internet.defer.Deferred
enable_plugin(self, plugin_name)
Enable a plugin.
source code
twisted.internet.defer.Deferred
enable_plugins(self)
Enable all the plugins that should be enabled.
source code
list
get_downloadable_plugins(self, reload_cache=False)
The list of downloadable plugins.
source code
generator
get_enabled_plugins(self)
Get the list of enabled plugins.
source code
pkg_resources.Distribution
get_plugin_by_name(self, plugin_name)
Return the plugin matching a given name.
source code
 
get_plugin_metadata(self, plugin)
Read and populate the metadata of a plugin.
source code
generator
get_plugin_names(self)
Get the names of the installed plugins.
source code
generator
get_plugins(self)
Get the list of available plugins.
source code
elisa.core.utils.defer.Deferred
install_new_recommended_plugins(self)
Download and install all the recommended plugins.
source code
elisa.core.utils.defer.Deferred
install_plugin(self, egg_file, plugin_name)
Install a plugin from a local egg file.
source code
 
load_plugin(self, plugin)
Load a given plugin in elisa.
source code
 
load_plugins(self, disabled_plugins=[])
Load plugins from self.plugin_dirs.
source code
 
plugin_repository(self) source code
 
register_plugin_status_changed_callback(self, callback)
Register a callback to be fired upon (de)activation of a plugin.
source code
bool
reload_cache(self)
Load the cached information about downloadable plugins.
source code
twisted.internet.defer.Deferred
unload_plugin(self, plugin)
Unload a given plugin from elisa.
source code
 
unregister_plugin_status_changed_callback(self, callback)
Unregister a callback that was previously registered to be fired upon (de)activation of a plugin.
source code
elisa.core.utils.defer.Deferred
update_cache(self)
Update the cached information about downloadable plugins.
source code
elisa.core.utils.defer.Deferred
update_plugin(self, plugin_dict)
Update an installed plugin for which a newer version is available in the plugin repository.
source code
Class Variables
  plugin_cache = property(_get_plugin_cache, _set_plugin_cache)

Inherited from extern.log.log.Loggable: logCategory

    Inherited from plugin_registry.PluginRegistry
  config_doc = {'repository': 'The plugin repository to query fo...
  config_section_name = 'plugin_registry'
  default_config = {'repository': 'http://plugins.moovida.com/pl...
Properties

Inherited from object: __class__

Method Details

__init__(self, *args, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)