gui_utils Namespace Reference


Functions

def LoadConfig
def usage_exit
def check_time
def check_date
def convert_date
def convert_date_readable
def check_ip
def find_item
def help_context
def complete_hours
def complete_days
def complete_d
def complete_m
def complete_y
def complete_ticks
def second
def second_string_to_int
def second_string_only


Function Documentation

def gui_utils::check_date   datus  ) 
 

This function checks if a given date is valid.

Definition at line 59 of file gui_utils.py.

def gui_utils::check_ip   ip  ) 
 

This function checks if a given IP is valid.

Definition at line 91 of file gui_utils.py.

def gui_utils::check_time   timus  ) 
 

This functions checks if a given time with the format hour:minute:second (12:45:46) is valid.

Definition at line 49 of file gui_utils.py.

def gui_utils::complete_d   new_array,
  start_date,
  end_date,
  new_field,
  value
 

Add missing dates within a month

Definition at line 332 of file gui_utils.py.

def gui_utils::complete_days   days,
  value_field
 

This function completes the missing dates within an array.

Definition at line 251 of file gui_utils.py.

def gui_utils::complete_hours   label,
  field
 

This function completes the missing hours within an array

Definition at line 219 of file gui_utils.py.

def gui_utils::complete_m   new_array,
  start_date,
  end_date,
  new_field,
  value
 

This function adds missing dates within a year.

Definition at line 406 of file gui_utils.py.

def gui_utils::complete_ticks   label,
  values
 

This function adds bins, so that the dot in the time diagram are between two hours.

Definition at line 466 of file gui_utils.py.

def gui_utils::complete_y   new_array,
  start_date,
  end_date,
  new_field,
  value
 

This function adds missing dates within many years

Definition at line 439 of file gui_utils.py.

def gui_utils::convert_date   datus  ) 
 

This function converts a date like 01.10.2005 into database conform date like 2005-10-01.

Definition at line 77 of file gui_utils.py.

def gui_utils::convert_date_readable   datus  ) 
 

This function converts a date like 2005-10-10 into are readable format 01.10.2005.

Definition at line 84 of file gui_utils.py.

def gui_utils::find_item   search,
  listus
 

This function find an item within a list (2 dimensional)

Definition at line 115 of file gui_utils.py.

def gui_utils::help_context   color  ) 
 

This function provides the help context.

Definition at line 131 of file gui_utils.py.

def gui_utils::LoadConfig   file_name,
  config = {}
 

returns a dictionary with key's of the form
<section>.<option> and the values

source: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65334

Definition at line 14 of file gui_utils.py.

def gui_utils::second   t1,
  t2
 

This function works with sort and the field gets sorted descending, but the second value within the array is taking into account !!!

Definition at line 484 of file gui_utils.py.

def gui_utils::second_string_only   t1,
  t2
 

This function works with sort and the field gets sorted ascending, but the second value within the array is taking into account !!! (The values to be sort are strings.)

Definition at line 498 of file gui_utils.py.

def gui_utils::second_string_to_int   t1,
  t2
 

This function works with sort and the field gets sorted ascending, but the second value within the array is taking into account !!! (The values to be sort are number as strings.)

Definition at line 491 of file gui_utils.py.

def gui_utils::usage_exit   progname,
  msg = None,
  color = 0
 

This function gives usage help and exits script.

Definition at line 30 of file gui_utils.py.


Generated on Sun Mar 5 23:04:04 2006 for Virtualiser by  doxygen 1.4.6-NO