Package entropy :: Package spm :: Package plugins :: Module factory

Module factory

source code


Author: Fabio Erculiani <[email protected]>

Contact: [email protected]

Copyright: Fabio Erculiani

License: GPL-2

Entropy Source Package Manager Plugins factory module.

Functions
 
get_default_class()
Return default Source Package Manager plugin class.
source code
entropy.spm.plugins.skel.SpmPlugin based instance
get_default_instance(output_interface)
Return the currently configured Entropy SPM interface instance.
source code
Variables
  FACTORY = EntropyPluginFactory(SpmPlugin, plugs, default_plugi...
  __package__ = 'entropy.spm.plugins'
Function Details

get_default_class()

source code 

Return default Source Package Manager plugin class.

Returns:
default Source Package Manager plugin class
Raises:
  • SystemError - if no default plugin class has been specified. This usually means a programming error.

get_default_instance(output_interface)

source code 

Return the currently configured Entropy SPM interface instance.

Parameters:
  • output_interface (entropy.output.TextInterface based instance) - Entropy Output Interface instance
Returns: entropy.spm.plugins.skel.SpmPlugin based instance
currently selected SPM interface

Variables Details

FACTORY

Value:
EntropyPluginFactory(SpmPlugin, plugs, default_plugin_name= _USER_PLUG\
)