Package flumotion :: Package common :: Module registry :: Class RegistryParser
[show private | hide private]
[frames | no frames]

Class RegistryParser

Loggable --+
           |
          RegistryParser


Registry parser

I have two modes, one to parse registries and another one to parse standalone component files.

For parsing registries use the parseRegistry function and for components use parseRegistryFile.

I also have a list of all components and directories which the directory use (instead of saving its own copy)
Method Summary
  __init__(self)
  _getChildNodes(self, node, tag)
  _getRoot(self, filename, string)
  _parseBundle(self, node)
  _parseBundleDependencies(self, node)
  _parseBundleDirectories(self, node)
  _parseBundleDirectory(self, node)
  _parseBundles(self, node)
  _parseComponent(self, node)
  _parseComponents(self, node)
  _parseDirectories(self, node)
  _parseDirectory(self, node)
  _parseEater(self, node)
  _parseEntries(self, node)
  _parseFeeder(self, node)
  _parseFiles(self, node)
  _parseProperties(self, properties, node)
  _parseRoot(self, node)
  _parseSource(self, node)
  addDirectory(self, directory)
Add a registry path object to the parser.
  clean(self)
  getComponent(self, name)
  getComponents(self)
  getDirectories(self)
  getDirectory(self, name)
  parseRegistry(self, filename, string)
  parseRegistryFile(self, filename, string)
Parse the given XML registry part file, And add it to our registry.
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, message)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure)
Log a warning about a Failure.

Class Variable Summary
    Inherited from Loggable
str logCategory: Implementors can provide a category to log their messages under.

Method Details

addDirectory(self, directory)

Add a registry path object to the parser.
Parameters:
directory
           (type={RegistryDirectory})

parseRegistryFile(self, filename, string=None)

Parse the given XML registry part file, And add it to our registry. If a string is given, the string overrides the given file.

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net