Module loader :: Class Loader
[show private | hide private]
[frames | no frames]

Class Loader


Loader: the plugin loader class.
Method Summary
  __init__(self, vars, plugin_vars)
init and do some checks.
  __repr__(self)
  __str__(self)
  load_all(self, exit_hooks)
load and initialize all plugins from the plugin list.

Method Details

__init__(self, vars, plugin_vars)
(Constructor)

init and do some checks.
Parameters:
vars - settings
           (type=dictionary, mandatory keys - values base_dir - 'path/to/plugins' (string), plugin_list - plugins to be loaded (list, [] for all available, None for none))
plugin_vars - parameters to pass on to plugins
           (type=dictionary)
Raises:
Co2LoaderError - Co2LoaderError on serious errors

load_all(self, exit_hooks)

load and initialize all plugins from the plugin list.
Parameters:
exit_hooks - instance variable of the registry that owns this loader instance. the loader scans vor exit hooks and appends them to that list, all members of which will be called on server shutdown
           (type=list)

Generated by Epydoc 1.1 on Thu Oct 16 16:37:22 2003 http://epydoc.sf.net