Package twisted :: Package python :: Module plugin |
[show private | hide private]
[frames | no frames]

## Module twisted.python.plugin

Classes
`PlugIn` | I am a Python module registered in a plugins.tml file.
`DropIn` | I am a Python package containing plugins.tml.

Function Summary
`list` of `str` | ``getPluginFileList`(debugInspection, showProgress)` Find plugin.tml files in subdirectories of paths in `sys.path`
| ``loadPlugins`(plugInType, fileList, debugInspection, showProgress)` Traverse the given list of files and attempt to load plugins from them.
`list` | ``getPlugIns`(plugInType, debugInspection, showProgress)` Helper function to get all the plugins of a particular type.

Function Details

### getPluginFileList(debugInspection=None, showProgress=None) Find plugin.tml files in subdirectories of paths in `sys.path` Parameters: `debugInspection` - If not None, this is invoked with strings containing debug information about the loading process. If it is any other true value, this debug information is written to stdout (This behavior is deprecated). (type=`None` or a callable taking one argument) `showProgress` - If not None, this is invoked with floating point values between 0 and 1 describing the progress of the loading process. If it is any other true value, this progress information is written to stdout. (This behavior is deprecated). (type=`None` or a callable taking one argument.) Returns: A list of the plugin.tml files found. (type=`list` of `str`)

### getPlugIns(plugInType, debugInspection=None, showProgress=None) Helper function to get all the plugins of a particular type. Parameters: `plugInType` - The type of plugin to search for. This is tested against the `type` argument to the `register` function in the plugin.tml files. (type=`str`) `debugInspection` - If not None, this is invoked with strings containing debug information about the loading process. If it is any other true value, this debug information is written to stdout (This behavior is deprecated). (type=`None` or a callable taking one argument) `showProgress` - If not None, this is invoked with floating point values between 0 and 1 describing the progress of the loading process. If it is any other true value, this progress information is written to stdout. (This behavior is deprecated). (type=`None` or a callable taking one argument.) Returns: A list of `PlugIn` objects that were found. (type=`list`)

### loadPlugins(plugInType, fileList, debugInspection=None, showProgress=None) Traverse the given list of files and attempt to load plugins from them. Parameters: `plugInType` - The type of plugin to search for. This is tested against the `type` argument to the `register` function in the plugin.tml files. (type=`str`) `fileList` - A list of the files to attempt to load plugin information from. One name is put in their scope, the `register` function. (type=`list` of `str`) `debugInspection` - If not None, this is invoked with strings containing debug information about the loading process. If it is any other true value, this debug information is written to stdout (This behavior is deprecated). (type=`None` or a callable taking one argument) `showProgress` - If not None, this is invoked with floating point values between 0 and 1 describing the progress of the loading process. If it is any other true value, this progress information is written to stdout. (This behavior is deprecated). @rtype `list` (type=`None` or a callable taking one argument.) Returns: A list of the `PlugIn` objects found.

Generated by Epydoc 1.1 on Thu May 8 13:16:49 2003 | http://epydoc.sf.net