py::qo::network::UpdateXMLIndex_Handler Class Reference

List of all members.

Public Member Functions

def __init__
def startElement

Public Attributes

 files
 fix
 obsolete

Static Public Attributes

 version = None
 root element
string obsolete = "0"


Member Function Documentation

def py::qo::network::UpdateXMLIndex_Handler::__init__ (   self  ) 

00081                              :
00082                 self.files = {}
00083                 self.fix = {}
00084 
        def startElement( self, name, attrs ) :

def py::qo::network::UpdateXMLIndex_Handler::startElement (   self,
  name,
  attrs 
)

00085                                               :
00086                 ## root element
00087                 if name == "index" : 
00088                         if attrs.has_key( 'version' ) : self.version = attrs.getValue( 'version' )
00089                         if attrs.has_key( 'obsolete' ) : self.obsolete = attrs.getValue( 'obsolete' )
00090                 ## file
00091                 elif name == "catalog" :
00092                         file = attrs.getValue( "name" )
00093                         self.files[ file ] = {
00094                                 'name' : file,
00095                                 'version' : attrs.getValue( 'version' ),
00096                                 'src' : attrs.getValue( 'src' ),
00097                                 'size' : attrs.getValue( 'size' )
00098                         }
00099                 ## fix
00100                 elif name == "update" :
00101                         src = attrs.getValue( "src" )
00102                         name = os.path.basename( src )
00103                         self.fix[ name ] = {
00104                                 'name' : name,
00105                                 'src' : src,
00106                                 'size' : attrs.getValue( 'size' )
00107                         }
00108 
00109 
def read_XMLIndex( path, mirrors ) :


Member Data Documentation

py::qo::network::UpdateXMLIndex_Handler::version = None [static]

root element

string py::qo::network::UpdateXMLIndex_Handler::obsolete = "0" [static]

py::qo::network::UpdateXMLIndex_Handler::files

py::qo::network::UpdateXMLIndex_Handler::fix

py::qo::network::UpdateXMLIndex_Handler::obsolete


The documentation for this class was generated from the following file:
Generated on Tue Oct 9 20:40:32 2007 for Qomics by  doxygen 1.5.3