Author:
Fabio Erculiani <lxnay@sabayonlinux.org>
Contact:
lxnay@sabayonlinux.org
Copyright:
Fabio Erculiani
License:
GPL-2
Entropy Framework constants module.
This module contains all the Entropy constants used all around
the "entropy" package.
Some of the constants in this module are used as
"default" for the SystemSettings interface. So, make sure
to read the documentation of SystemSettings in the
"entropy.core" module.
Even if possible, etpConst, etpUi, etpCache and etpSys objects
*SHOULD* be never ever modified manually. This freedom could
change in future, so, if you want to produce a stable code, DON'T
do that at all!
Basic Entropy constants handling functions are available in this
module and are all prefixed with "const_*" or
"initconfig_*". If you are writing a third party
application, you should always try to avoid to deal directly with
functions here unless specified otherwise. In fact, usually these
here are wrapper in upper-level modules (entropy.client,
entropy.server, entropy.services).
|
None
|
|
|
None
|
|
|
int
|
|
|
tuple (string, dict)
|
const_extract_cli_repo_params(repostring,
branch=None,
product=None)
Extract repository information from the provided repository string,
usually contained in the repository settings file, repositories.conf. |
source code
|
|
|
None
|
|
|
int
|
|
|
bool
|
|
|
|
const_remove_entropy_pid()
Remove Entropy pid if function calling pid matches the one stored. |
source code
|
|
|
None
|
|
|
|
|
|
None
|
|
|
None
|
|
|
None
|
|
|
None
|
|
|
None
|
|
|
integer(8) (octal)
|
|
|
None
|
|
|
None
|
|
|
None
|
|
|
|
|
|
bool
|
|
|
bool
|
|
|
|
|
|
unicode object
|
const_convert_to_unicode(obj,
enctype='raw_unicode_escape')
Convert generic string to unicode format, this function supports both
Python 2.x and Python 3.x unicode bullshit. |
source code
|
|
|
bytes
|
|
|
|
const_get_buffer()
Return generic buffer object (supporting both Python 2.x and Python
3.x) |
source code
|
|
|
|
const_isfileobj(obj)
Return whether obj is a file object |
source code
|
|
|
|
const_isnumber(obj)
Return whether obj is an int, long object. |
source code
|
|
|
|
const_cmp(a,
b)
cmp() is gone in Python 3.x provide our own implementation. |
source code
|
|
|
bool
|
const_islive()
Live environments (Operating System running off a CD/DVD) must
feature the "cdroot" parameter in kernel /proc/cmdline |
source code
|
|
|
None
|
|
|
None
|
|
|
|
ETP_ARCH_MAP = {('i386', 'i486', 'i586', 'i686'): 'x86', ('ppc...
|
|
|
ETP_ARCH_CONST = 'amd64'
|
|
|
etpSys = {'api': '3', 'arch': 'amd64', 'archs': ['alpha', 'amd...
|
|
|
etpUi = {'ask': False, 'clean': False, 'debug': False, 'mute':...
|
|
|
ETP_LOGLEVEL_NORMAL = 1
|
|
|
ETP_LOGLEVEL_VERBOSE = 2
|
|
|
ETP_LOGPRI_INFO = '[ INFO ]'
|
|
|
ETP_LOGPRI_WARNING = '[ WARNING ]'
|
|
|
ETP_LOGPRI_ERROR = '[ ERROR ]'
|
|
|
etpCache = {'advisories': 'security/advisories_cache_', 'atomM...
|
|
|
etpConst = {'applicationlock': False, 'backed_up': {}, 'branch...
|
|
|
__package__ = 'entropy'
|
|
|
arch = 'x86'
|
|
|
arches = ('i386', 'i486', 'i586', 'i686')
|