Package Ganga :: Package Utility :: Package Plugin :: Module GangaPlugin :: Class PluginManager
[hide private]
[frames] | no frames]

Class PluginManager

source code

object --+
         |
        PluginManager

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
find(self, category, name)
Return a plugin added with 'name' in the given 'category'.
source code
 
add(self, pluginobj, category, name)
Add a pluginobj to the plugin manager with the name and the category labels.
source code
 
setDefault(self, category, name)
Make the plugin 'name' be default in a given 'category'.
source code
 
allCategories(self) source code
 
allClasses(self, category) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

find(self, category, name)

source code 

Return a plugin added with 'name' in the given 'category'. If 'name' is None then the default plugin in the category is returned. Typically the default plugin is the first added. If plugin not found raise PluginManagerError.

add(self, pluginobj, category, name)

source code 

Add a pluginobj to the plugin manager with the name and the category labels. The first plugin is default unless changed explicitly.

setDefault(self, category, name)

source code 

Make the plugin 'name' be default in a given 'category'. You must first add() the plugin object before calling this method. Otherwise PluginManagerError is raised.