Table of Contents

Class: PluginLoader ../HappyDoc-r2_1/happydoclib/pluginloader.py

A class to handle pluggable module loading.

Base Classes   
UserDict.UserDict
Methods   
__init__
addEntryPoint
getModuleList
  __init__ 
__init__ (
        self,
        moduleName,
        modulePath,
        parentModulePrefix,
        )

Create a PluginLoader.

Parameters

moduleName
The imported module, from which we get name, path, etc. to find the sub-modules.
modulePath
The path to the module, and therefore the parent directory of the plugins.
parentModulePrefix
The prefix of parent names to be added to moduleName. For example happydoclib.
Exceptions   
PluginException( buffer.getvalue(), _import_name )
  addEntryPoint 
addEntryPoint ( self,  infoDict )

Add an entry point into a module to our lookup tables.

This method must be implemented by the subclass.

Exceptions   
'Not implemented for %s' % self.__class__.__name__
  getModuleList 
getModuleList ( self )

Return a list of module names to be used as plugins.


Table of Contents

This document was automatically generated on Sat Aug 24 16:57:23 2002 by HappyDoc version 2.1