PluginHandler
Incomplete documentation - sorry!
Note
Neil - please put some data in technical/class_headings/PluginHandler.rst
methods and attributes
-
class lib_openmolar.common.qt4.plugin_tools.plugin_handler.PluginHandler[source]
Bases: object
A class to verify and install plugins
-
__init__()
x.__init__(...) initializes x; see help(type(x)) for signature
-
ACTIVE_PLUGINS = set([])
-
activate_plugin(plugin)[source]
-
activate_plugins()[source]
iterates over the loaded plugins and activates them.
-
de_activate_plugins()[source]
iterates over the activated plugins and de-activates them.
-
deactivate_plugin(plugin)[source]
-
fee_scales[source]
a list of all fee_scales installed (fee_scale = a type of BasePlugin)
-
get_modules(plugin_dir)[source]
finds all modules in plugin_dir
-
get_pluggable_classes(module, target=None)[source]
- Args:
- module (module object)
generates a list of all classes which are subclassed
from lib_openmolar.client.Plugin in the module “module”
-
get_plugins(plugin_dir, target=None)[source]
peruses a directory and finds all plugins
-
install_fee_scale(fee_scale)[source]
installs a fee_scale (of type BasePlugin)
-
load_plugins(target=None)[source]
this function is called by the client application to load plugins
-
plugins[source]
a list of all plugins (of type BasePlugin)
-
remove_fee_scale(fee_scale)[source]
removes a fee_scale (of type BasePlugin)