Package elisa :: Package extern :: Package coherence :: Module simple_plugin :: Class Reception
[hide private]
[frames] | no frames]

Class Reception

source code


singleton class which holds information about known plugins

currently a singleton, and even a class, seems to be overkill for this, but maybe we'll add some more functionality later

Instance Methods [hide private]
 
__init__(self, plugin_path='frontend', log='frontend')
initializes the class and checks in if a path is provided
source code
 
checkin(self, plugin_path)
import all valid files from plugin_path
source code
 
guestlist(self, plugin_class=<class 'elisa.extern.coherence.simple_plugin.Plugin'>)
returns a list of all Plugin subclasses
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]
 
__new__(cls, *args, **kwargs)
creates the singleton
source code
Class Variables [hide private]
  _instance_ = 'frontend'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, *args, **kwargs)
Static Method

source code 
creates the singleton
Returns:
a new object with type S, a subtype of T

Overrides: object.__new__

__init__(self, plugin_path='frontend', log='frontend')
(Constructor)

source code 
initializes the class and checks in if a path is provided
Overrides: object.__init__