gz_parser Namespace Reference


Functions

def LoadConfig
def parse_directory
def get_keywords
def remove_item
def gunzip
def delete_file
def usage_exit
def start


Function Documentation

def gz_parser::delete_file   filus  ) 
 

This functions deletes a given file.

Definition at line 119 of file gz_parser.py.

def gz_parser::get_keywords   filus  ) 
 

This function extracts keyword from a give file!

Definition at line 59 of file gz_parser.py.

def gz_parser::gunzip   filus,
  name_temp_file = "temp_srbLog"
 

This function unzips a *.gz file using the system tool gunzip. Make sure when calling the function the file exists in this directory. The function creates a temporary file and leave the orignal *.gz file untouched!

Definition at line 108 of file gz_parser.py.

def gz_parser::LoadConfig   file,
  config = {}
 

This functions 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 18 of file gz_parser.py.

def gz_parser::parse_directory   arg,
  dirname,
  fnames
 

This function "walks" through a given directory and considers all srbLOG*.gz files. The name and last modified time are saved in a list (2 dimensional array). The function should be used with os.path.walk(path, function_name, arg)!

Definition at line 34 of file gz_parser.py.

def gz_parser::remove_item   listus,
  item
 

This function removes "items" form a list object rekursiv.

Definition at line 91 of file gz_parser.py.

def gz_parser::start  ) 
 

This function starts the application.

Definition at line 142 of file gz_parser.py.

def gz_parser::usage_exit   progname,
  msg = None
 

This function displays the usage of the program and terminated the script.

Definition at line 130 of file gz_parser.py.


Generated on Sun Mar 5 18:04:16 2006 for GZ Parser by  doxygen 1.4.6-NO