Package flumotion :: Package common :: Module registry :: Class RegistryParser
[hide private]

Class RegistryParser

source code

log.Loggable --+    
               |    
     fxml.Parser --+
                   |
                  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 registry uses (instead of saving its own copy)

Instance Methods [hide private]
 
__init__(self) source code
 
clean(self) source code
 
getComponents(self) source code
 
getComponent(self, name) source code
 
getPlugs(self) source code
 
getPlug(self, name) source code
 
_parseComponents(self, node) source code
 
_parseComponent(self, node) source code
 
_parseSource(self, node) source code
 
_parseProperty(self, node) source code
 
_parseProperties(self, node) source code
 
_parseFile(self, node) source code
 
_parseFiles(self, node) source code
 
_parseSocket(self, node) source code
 
_parseSockets(self, node) source code
 
_parseEntry(self, node) source code
 
_parseEntries(self, node) source code
 
_parseEater(self, node) source code
 
_parseFeeder(self, node) source code
 
_parseSynchronization(self, node) source code
 
_parsePlugEntry(self, node) source code
 
_parsePlug(self, node) source code
 
_parsePlugs(self, node) source code
 
parseRegistryFile(self, file) source code
 
_parseBundles(self, node) source code
 
_parseBundle(self, node) source code
 
_parseBundleDependency(self, node) source code
 
_parseBundleDependencies(self, node) source code
 
_parseBundleDirectories(self, node) source code
 
_parseBundleDirectoryFilename(self, node, name) source code
 
_parseBundleDirectory(self, node) source code
 
parseRegistry(self, file) source code
 
getDirectories(self) source code
 
getDirectory(self, name) source code
 
addDirectory(self, directory)
Add a registry path object to the parser.
source code
 
removeDirectoryByPath(self, path)
Remove a directory from the parser given the path.
source code
 
_parseRoot(self, node, disallowed=None) source code
 
_parseDirectories(self, node) source code
 
_parseDirectory(self, node) source code

Inherited from fxml.Parser: checkAttributes, getRoot, parseAttributes, parseFromTable

Inherited from log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Class Variables [hide private]

Inherited from log.Loggable: __implemented__, __provides__, logCategory

Method Details [hide private]

parseRegistryFile(self, file)

source code 
Parameters:
  • file (str or file.) - The file to parse, either as an open file object, or as the name of a file to open.

parseRegistry(self, file)

source code 
Parameters:
  • file (str or file.) - The file to parse, either as an open file object, or as the name of a file to open.

addDirectory(self, directory)

source code 

Add a registry path object to the parser.

Parameters:
  • directory ({RegistryDirectory})

removeDirectoryByPath(self, path)

source code 

Remove a directory from the parser given the path. Used when the path does not actually contain any registry information.