Package Products :: Package DataCollector :: Module Plugins :: Class PluginLoader
[hide private]
[frames] | no frames]

Class PluginLoader

source code

  twisted.spread.pb.Copyable --+
                               |
twisted.spread.pb.RemoteCopy --+
                               |
                              PluginLoader

Class to load plugins

Instance Methods [hide private]
 
__init__(self, package, modPath, lastModName, importer)
package - '/'-separated absolute path to the root of the plugins modules modPath - '.'-spearated module path.
source code
 
create(self)
Load and compile the code contained in the given plugin
source code
Method Details [hide private]

__init__(self, package, modPath, lastModName, importer)
(Constructor)

source code 

package - '/'-separated absolute path to the root of the plugins
          modules
modPath - '.'-spearated module path.  for core plugins, it is rooted
          at the package.  for zenpack plugins, it starts with
          'ZenPacks'
lastModName - name of the last module in modPath that is not part of
          of the plugin name
importer - object with an importPlugin method used to import the
           plugin. the implementation of the import method differs
           between core and zenpack plugins