Module co2
[show private | hide private]
[frames | no frames]

Module co2

co2 wrapper around a co2 server.
Classes
Co2 the actual wrapper object.

Function Summary
  daemonize(log_file)
fork into the background and redirect all output to a file.
  debug(caller, msg, level)
the global debug method passed on to all components that might want to debug in the central place (stdout or file, depending on the server config.)
  make_log_timestamp()
  setUID(uid)
set the UID of this process.
  usage(msg)
print out useage info.

Variable Summary
str __author__
str __version__
int debug_level
int default_debug_level

Function Details

daemonize(log_file)

fork into the background and redirect all output to a file.
Parameters:
log_file - filename (absolute path) of the logfile to use
           (type=string)

debug(caller, msg, level=0)

the global debug method passed on to all components that might want to debug in the central place (stdout or file, depending on the server config.)
Parameters:
caller - prefix for the entry
           (type=string or object with a __repr__ method)
msg - debug message text
           (type=string)

setUID(uid)

set the UID of this process. on failure, prints a warning and tries to continue without setting the UID.
Parameters:
uid - numerical user ID
           (type=int)

usage(msg=None)

print out useage info.
Parameters:
msg - optional additional message
           (type=string)

Variable Details

__author__

Type:
str
Value:
'lu'                                                                   

__version__

Type:
str
Value:
'0.5.11'                                                               

debug_level

Type:
int
Value:
2                                                                      

default_debug_level

Type:
int
Value:
2                                                                      

Generated by Epydoc 1.1 on Thu Oct 16 16:37:22 2003 http://epydoc.sf.net