Class s.l.p.PluginManager(object):

Part of stoqlib.lib.pluginmanager View In Hierarchy

No class docstring
Method __init__ Undocumented
Method _read_plugin_descriptions Undocumented
Method _register_plugin_description Undocumented
Method _import_plugin Undocumented
Method _get_plugin Undocumented
Method register_plugin Registers a plugin, this is normally called in the plugin itself
Method activate_plugins Activates all enabled plugins
Method enable_plugin Enables a plugin.
Method get_active_plugins Gets a list of all active/enabled plugins
Method has_plugin Verify if the plugin is available or not.
Method get_plugin_names Gets a list of plugin names of available plugins.
def __init__(self):
Undocumented
def _read_plugin_descriptions(self):
Undocumented
def _register_plugin_description(self, filename):
Undocumented
def _import_plugin(self, plugin_desc):
Undocumented
def _get_plugin(self, plugin_name):
Undocumented
def register_plugin(self, plugin):
Registers a plugin, this is normally called in the plugin itself
Parameterspluginthe plugin
typean object implementing IPlugin
def activate_plugins(self):
Activates all enabled plugins
def enable_plugin(self, plugin_name):
Enables a plugin. This makes sure that the plugin is inserted into the database and that it always will be loaded on startup
Parametersplugin_nameThe name of the plugin
def get_active_plugins(self):
Gets a list of all active/enabled plugins
Returnsa sequence of plugins
def has_plugin(self, plugin_name):
Verify if the plugin is available or not.
Parametersplugin_namename of plugin
ReturnsTrue or False
def get_plugin_names(self):
Gets a list of plugin names of available plugins.
Returnslist of plugin names.
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.