Package entropy :: Package core :: Class EntropyPluginStore

Class EntropyPluginStore

source code


This is a base class for handling a map of plugin objects by providing generic add/remove functions.

Instance Methods
 
__init__(self) source code
dict
get_plugins(self)
Return a copy of the internal dictionary that contains the currently stored plugins map.
source code
 
drop_plugins(self)
Drop all the currently stored plugins from storage.
source code
 
add_plugin(self, plugin_id, plugin_object)
This method lets you add a plugin to the store.
source code
 
remove_plugin(self, plugin_id)
This method lets you remove previously added plugin objects via identifiers.
source code
Method Details

get_plugins(self)

source code 

Return a copy of the internal dictionary that contains the currently stored plugins map.

Returns: dict
stored plugins map

add_plugin(self, plugin_id, plugin_object)

source code 

This method lets you add a plugin to the store.

Parameters:
  • plugin_id (string) - plugin identifier
  • plugin_object (any Python object) - valid SystemSettingsPlugin instance

remove_plugin(self, plugin_id)

source code 

This method lets you remove previously added plugin objects via identifiers.

Parameters:
  • plugin_id (basestring) - plugin identifier