client_classes::MyContentHandler Class Reference

List of all members.

Public Member Functions

def __init__
def set_ip
def startElement
def characters
def endElement
def _test_keywords
def _reset
def _insert

Detailed Description

This class is derived from _xmlplus.sax.handler and provides individual functions for parsing the xml file.

Definition at line 33 of file client_classes.py.


Member Function Documentation

def client_classes::MyContentHandler::__init__   self,
  db_object,
  ip,
  ignore_error,
  mail_obj,
  verbose
 

Constructor

Definition at line 36 of file client_classes.py.

def client_classes::MyContentHandler::_insert   self  ) 
 

This function inserts the data from the xml file into the database.

Definition at line 221 of file client_classes.py.

def client_classes::MyContentHandler::_reset   self  ) 
 

This function resets member variables.

Definition at line 206 of file client_classes.py.

def client_classes::MyContentHandler::_test_keywords   self,
  keywordlist,
  amount_of_keywords,
  teststring
 

This is a recursive function, which tests if a list of keywords is part of a string (AND relation). If all keywords found 0 is returned, otherwise -1

keywordlist = list of all keywords
amount_of_keywords = number of keywords in list
teststring = string, which needs to be investigated

return -1 if line is not interesting
return 0 if line is taken

Definition at line 139 of file client_classes.py.

def client_classes::MyContentHandler::characters   self,
  tag_text
 

This function overwrites the character function to extract the tag content.

Definition at line 70 of file client_classes.py.

def client_classes::MyContentHandler::endElement   self,
  tag
 

Definition at line 90 of file client_classes.py.

def client_classes::MyContentHandler::set_ip   self,
  ip
 

The function sets the member variable _ip.

Definition at line 58 of file client_classes.py.

def client_classes::MyContentHandler::startElement   self,
  tag,
  attr
 

The function overwrites the startElement function.

Definition at line 64 of file client_classes.py.


The documentation for this class was generated from the following file:
Generated on Sun Mar 5 15:54:49 2006 for Client by  doxygen 1.4.6-NO