| Home | Trees | Index | Help |
|
|---|
| Package funkload :: Module 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 the logger. | |
Detach a process from the controlling terminal and run it in the background as a daemon. | |
Get a logger. | |
Retrun the FunkLoad package version. | |
Return green text. | |
Simple check that return True if the text is an html page. | |
Ask tidy if the html is valid. | |
Decode a meta method name. | |
Encode a extra information into a method_name. | |
Is it a meta method name ?. | |
A semaphore to tell the running threads when to begin recording. | |
Return red text. | |
A semaphore to tell the running threads that it should continue running ftest. | |
Enable recording. | |
Set running mode on. | |
Sleep seconds. | |
Simple print to stdout | |
Get credential thru xmlrpc credential_server. | |
Get list of users thru xmlrpc credential_server. | |
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
|
g_running
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Tue Feb 27 10:41:42 2007 | http://epydoc.sf.net |