Package peppy :: Package yapsy :: Module PluginManager :: Class PluginManagerSingleton
[frames] | no frames]

Class PluginManagerSingleton

object --+
         |
        PluginManagerSingleton

Singleton version of the most basic plugin manager.

Being a singleton, this class should not be initialised explicitly and the ``get``classmethod must be called instead.

To call one of this class's methods you have to use the ``get`` method in the following way: ``PluginManagerSingleton.get().themethodname(theargs)``

To set up the various coonfigurables variables of the PluginManager's behaviour please call explicitly the following methods:

Instance Methods
 
__init__(self)
Initialisation: this class should not be initialised explicitly and the ``get``classmethod must be called instead.

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

Class Methods
 
setBehaviour(self, list_of_pmd)
Set the functionalities handled by the plugin manager by giving a list of PluginManager decorators.
 
get(self)
Actually create an instance
Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

 

Initialisation: this class should not be initialised explicitly and the ``get``classmethod must be called instead.

To set up the various coonfigurables variables of the PluginManager's behaviour please call explicitly the following methods:

  • ``setCategoriesFilter`` for ``categories_filter``
  • ``setPluginPlaces`` for ``directories_list``
  • ``setPluginInfoExtension`` for ``plugin_info_ext``
Overrides: object.__init__

setBehaviour(self, list_of_pmd)
Class Method

 

Set the functionalities handled by the plugin manager by giving a list of PluginManager decorators.

This function shouldn't be called several time in a same process, but if it is only the first call will have an effect.

It also has an effect only if called before the initialisation of the singleton.

In cases where the function is indeed going to change anything the 'True' value is return, in all other cases, the 'False' value is returned.