Package funkload :: Module utils
[show private | hide private]
[frames | no frames]

Module funkload.utils

FunkLoad common utils.

$Id: utils.py 24649 2005-08-29 14:20:19Z bdelbosc $
Classes
BaseFilter Base filter.
truncate Middle truncate string up to length.

Function Summary
  close_logger(name)
Close the logger.
  create_daemon()
Detach a process from the controlling terminal and run it in the background as a daemon.
  get_default_logger(log_to, log_path, level, name)
Get a logger.
  get_version()
Retrun the FunkLoad package version.
  green_str(text)
Return green text.
  is_html(text)
Simple check that return True if the text is an html page.
  is_valid_html(html, file_path, accept_warning)
Ask tidy if the html is valid.
  mmn_decode(meta_method_name)
Decode a meta method name.
  mmn_encode(method_name, cycle, cvus, thread_id)
Encode a extra information into a method_name.
  mmn_is_bench(meta_method_name)
Is it a meta method name ?.
  recording()
A semaphore to tell the running threads when to begin recording.
  red_str(text)
Return red text.
  running()
A semaphore to tell the running threads that it should continue running ftest.
  set_recording_flag(value)
Enable recording.
  set_running_flag(value)
Set running mode on.
  thread_sleep(seconds)
Sleep seconds.
  trace(message)
Simple print to stdout
  xmlrpc_get_credential(host, port, group)
Get credential thru xmlrpc credential_server.
  xmlrpc_list_credentials(host, port, group)
Get list of users thru xmlrpc credential_server.
  xmlrpc_list_groups(host, port)
Get list of groups thru xmlrpc credential_server.

Variable Summary
bool g_recording = False
bool g_running = False

Function Details

close_logger(name)

Close the logger.

create_daemon()

Detach a process from the controlling terminal and run it in the background as a daemon.

get_default_logger(log_to, log_path=None, level=10, name='FunkLoad')

Get a logger.

get_version()

Retrun the FunkLoad package version.

green_str(text)

Return green text.

is_html(text)

Simple check that return True if the text is an html page.

is_valid_html(html=None, file_path=None, accept_warning=False)

Ask tidy if the html is valid.

Return a tuple (status, errors)

mmn_decode(meta_method_name)

Decode a meta method name.

mmn_encode(method_name, cycle, cvus, thread_id)

Encode a extra information into a method_name.

mmn_is_bench(meta_method_name)

Is it a meta method name ?.

recording()

A semaphore to tell the running threads when to begin recording.

red_str(text)

Return red text.

running()

A semaphore to tell the running threads that it should continue running ftest.

set_recording_flag(value)

Enable recording.

set_running_flag(value)

Set running mode on.

thread_sleep(seconds=0)

Sleep seconds.

Insure that seconds is at least MIN_SLEEPTIME to let threads working properly.

trace(message)

Simple print to stdout

Not thread safe.

xmlrpc_get_credential(host, port, group=None)

Get credential thru xmlrpc credential_server.

xmlrpc_list_credentials(host, port, group=None)

Get list of users thru xmlrpc credential_server.

xmlrpc_list_groups(host, port)

Get list of groups thru xmlrpc credential_server.

Variable Details

g_recording

Type:
bool
Value:
False                                                                  

g_running

Type:
bool
Value:
False                                                                  

Generated by Epydoc 2.1 on Tue Feb 27 10:41:42 2007 http://epydoc.sf.net