| Home | Trees | Indices | Help |
|
|---|
|
|
# DESCRIPTION: # Variables container
Copyright (C) 2007-2009 Fabio Erculiani
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
| Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Variables | |
ETP_ARCH_CONST =
|
|
etpSys =
|
|
etpUi =
|
|
ETP_LOGLEVEL_NORMAL = 1
|
|
ETP_LOGLEVEL_VERBOSE = 2
|
|
ETP_LOGPRI_INFO =
|
|
ETP_LOGPRI_WARNING =
|
|
ETP_LOGPRI_ERROR =
|
|
etpCache =
|
|
etpConst =
|
|
| Function Details |
Main constants configurators, this is the only function that you should call from the outside, everytime you want. it will reset all the variables excluding those backed up previously. @param rootdir current root directory, if any, or "" @type rootdir str @return None |
Initialization of all the Entropy base settings. @param rootdir current root directory, if any, or "" @type rootdir str @return None |
Change current process scheduler "nice" level. @param nice_level new valid nice level @type nice_level int @return current_nice new nice level |
Extract repository information from the provided repository string,
usually contained in the repository settings file, repositories.conf.
@param repostring basestring
@type repostring valid repository string
@return tuple composed by
reponame => repository identifier (string),
mydata => extracted repository information (dict)
|
Read Entropy release file content and fill etpConst['entropyversion'] @return None |
Setup Entropy pid file, if possible and if UID = 0 (root). If the application is run with --no-pid-handling argument, this function will have no effect. If just_read is specified, this function will only try to read the current pid string in the Entropy pid file (etpConst['pidfile']). If any other entropy istance is currently owning the contained pid, etpConst['applicationlock'] becomes True. @param just_read only read the current pid file, if any and if possible @type just_read bool @return None |
Setup entropy file needing strict permissions, no world readable. @param config_file valid config file path @type config_file basestring @return None |
Setup entropy pid file permissions, if possible. @return None |
Setup Entropy directory structure, as much automagically as possible. @return None |
Setup Entropy lock file paths. @return None |
Analyze a server repository string (usually contained in server.conf), extracting all the parameters. @param repostring repository string @type repostring basestring @return None |
Setup permissions and group id (GID) to a directory, recursively. @param mydir valid file path @type mydir basestring @param gid valid group id (GID) @type gid int @return None |
Setup file permissions and group id (GID). @param myfile valid file path @type myfile basestring @param gid valid group id (GID) @type gid int @param chmod permissions @type chmod integer representing an octal @return None |
This function get the current permissions of the specified file. If you want to use the returning value with const_set_chmod you need to convert it back to int. @param myfile valid file path @type myfile basestring @return octal representing permissions |
This function sets specified permissions to a file. If they differ from the current ones. @param myfile valid file path @type myfile basestring @param chmod permissions @type chmod integer representing an octal @return None |
This function tries to retrieve the "entropy" user group GID. @return None or KeyError exception |
This function looks for an "entropy" user group. If not available, it tries to create one. @return None |
Live environments (Operating System running off a CD/DVD) must feature the "cdroot" parameter in kernel /proc/cmdline @return bool stating if we are running Live or not |
Entropy threads killer. Even if Python threads cannot be stopped or killed, TimeScheduled ones can, exporting the kill() method. @return None |
Our default Python exception handler. It kills all the threads generated by Entropy before raising exceptions. Overloads sys.excepthook @param etype exception type @param value exception value @param t_back traceback object? @return sys.__excepthook__ |
| Variables Details |
etpSys
|
etpUi
|
etpCache
|
etpConst
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Jun 1 10:07:47 2009 | http://epydoc.sourceforge.net |