pluginmanager

Provide plugin management

class openlp.core.lib.pluginmanager.PluginManager(parent=None)[source]

Bases: openlp.core.common.registrymixin.RegistryMixin, openlp.core.common.openlpmixin.OpenLPMixin, openlp.core.common.registryproperties.RegistryProperties

This is the Plugin manager, which loads all the plugins, and executes all the hooks, as and when necessary.

bootstrap_initialise()[source]

Bootstrap all the plugin manager functions

finalise_plugins()[source]

Loop through all the plugins and give them an opportunity to clean themselves up

find_plugins()[source]

Scan a directory for objects inheriting from the Plugin class.

get_plugin_by_name(name)[source]

Return the plugin which has a name with value name.

hook_export_menu()[source]

Loop through all the plugins and give them an opportunity to add an item to the export menu.

hook_import_menu()[source]

Loop through all the plugins and give them an opportunity to add an item to the import menu.

hook_media_manager()[source]

Create the plugins’ media manager items.

hook_settings_tabs()[source]

Loop through all the plugins. If a plugin has a valid settings tab item, add it to the settings tab. Tabs are set for all plugins not just Active ones

hook_tools_menu()[source]

Loop through all the plugins and give them an opportunity to add an item to the tools menu.

hook_upgrade_plugin_settings(settings)[source]

Loop through all the plugins and give them an opportunity to upgrade their settings.

Parameters:settings – The Settings object containing the old settings.
initialise_plugins()[source]

Loop through all the plugins and give them an opportunity to initialise themselves.

new_service_created()[source]

Loop through all the plugins and give them an opportunity to handle a new service