| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
PluginManager
Manage several plugins by ordering them in several categories.
The mechanism for searching and loading the plugins is already
implemented in this class so that it can be used directly (hence
it can be considered as a bit more than a mere interface)
The file describing a plugin should be written in the sytax
compatible with Python's ConfigParser module as in the following
example:
'
[Core Information]
Name= My plugin Name
Module=the_name_of_the_pluginto_load_with_no_py_ending
[Documentation]
Description=What my plugin broadly does
Author= My very own name
Website= My very own website
Version=the_version_number_of_the_plugin
'
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
Initialize the mapping of the categories and set the list of directories where plugins may be. This can also be set by direct call the methods:
You may look at these function's documentation for the meaning of each corresponding arguments.
|
Set the categories of plugins to be looked for as well as the way to recognise them. The ``categories_filter`` first defines the various categories in which the plugins will be stored via its keys and it also defines the interface tha has to be inherited by the actual plugin class belonging to each category. |
Set the class that holds PluginInfo. The class should inherit from ``PluginInfo``. |
Get the class that holds PluginInfo. The class should inherit from ``PluginInfo``. |
Set the extension that identifies a plugin info file. The ``plugin_info_ext`` is the extension that will have the informative files describing the plugins and that are used to actually detect the presence of a plugin (see ``collectPlugins``). |
Walk through the plugins' places and look for plugins. Return the number of plugins found. |
Load the candidate plugins that have been identified through a previous call to locatePlugins. For each plugin candidate look for its category, load it and store it in the appropriate slot of the category_mapping. If a callback function is specified, call it before every load attempt. The plugin_info instance is passed as an argument to the callback. |
Walk through the plugins' places and look for plugins. Then for each plugin candidate look for its category, load it and stores it in the appropriate slot of the category_mapping. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Feb 21 14:51:28 2008 |