Package entropy :: Module core

Module core

source code


Author: Fabio Erculiani <lxnay@sabayonlinux.org>

Contact: lxnay@sabayonlinux.org

Copyright: Fabio Erculiani

License: GPL-2

Entropy Framework core module.

This module contains base classes used by entropy.client, entropy.server and entropy.services.

"Singleton" is a class that is inherited from singleton objects.

SystemSettings is a singleton, pluggable interface which contains all the runtime settings (mostly parsed from configuration files and inherited from entropy.const -- which contains almost all the default values). SystemSettings works as a dict object. Due to limitations of multiple inherittance when using the Singleton class, SystemSettings ONLY mimics a dict AND it's not a subclass of it.

SystemSettingsPlugin is the base class for building valid SystemSettings plugin modules (see entropy.client.interfaces.client or entropy.server.interfaces for working examples).

Classes
  Singleton
If your class wants to become a sexy Singleton, subclass this and replace __init__ with init_singleton
  SystemSettingsPlugin
This is a plugin base class for all SystemSettings plugins.
  SystemSettings
This is the place where all the Entropy settings are stored if they are not considered instance constants (etpConst).