A plugin manager that also manages a configuration file.
|
|
__init__(self,
configparser_instance=None,
config_change_trigger=<function <lambda> at 0xe4ce60>,
decorated_manager=None,
categories_filter={'Default': <class 'yapsy.IPlugin.IPlugin'>},
directories_list=None,
plugin_info_ext='yapsy-plugin')
Create the plugin manager and record the ConfigParser instance
that will be used afterwards. |
source code
|
|
|
|
setConfigParser(self,
configparser_instance,
config_change_trigger)
Set the ConfigParser instance. |
source code
|
|
|
|
__getCategoryPluginsListFromConfig(self,
plugin_list_str)
Parse the string describing the list of plugins to activate,
to discover their actual names and return them. |
source code
|
|
|
|
__getCategoryPluginsConfigFromList(self,
plugin_list)
Compose a string describing the list of plugins to activate |
source code
|
|
|
|
__getCategoryOptionsName(self,
category_name)
Return the appropirately formated version of the category's
option. |
source code
|
|
|
|
__addPluginToConfig(self,
category_name,
plugin_name)
Utility function to add a plugin to the list of plugin to be
activated. |
source code
|
|
|
|
__removePluginFromConfig(self,
category_name,
plugin_name)
Utility function to add a plugin to the list of plugin to be
activated. |
source code
|
|
|
|
registerOptionFromPlugin(self,
category_name,
plugin_name,
option_name,
option_value)
To be called from a plugin object, register a given option in
the name of a given plugin. |
source code
|
|
|
|
hasOptionFromPlugin(self,
category_name,
plugin_name,
option_name)
To be called from a plugin object, return True if the option
has already been registered. |
source code
|
|
|
|
readOptionFromPlugin(self,
category_name,
plugin_name,
option_name)
To be called from a plugin object, read a given option in
the name of a given plugin. |
source code
|
|
|
|
__decoratePluginObject(self,
category_name,
plugin_name,
plugin_object)
Add two methods to the plugin objects that will make it
possible for it to benefit from this class's api concerning
the management of the options. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from PluginManager.PluginManagerDecorator:
__getattr__,
collectPlugins
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|