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)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
add_plugin(self, plugin_id, plugin_object)
This method lets you add a plugin to the store.
source code
 
drop_plugins(self)
Drop all the currently stored plugins from storage.
source code
dict
get_plugins(self)
Return a copy of the internal dictionary that contains the currently stored plugins map.
source code
 
has_plugin(self, plugin_id)
Return whether EntropyPluginStore instance contains the given plugin id.
source code
 
remove_plugin(self, plugin_id)
This method lets you remove previously added plugin objects via identifiers.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

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

get_plugins(self)

source code 

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

Returns: dict
stored plugins map

remove_plugin(self, plugin_id)

source code 

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

Parameters:
  • plugin_id (basestring) - plugin identifier