Package flumotion :: Package common :: Module config :: Class BaseConfigParser
[hide private]

Class BaseConfigParser

source code

log.Loggable --+    
               |    
     fxml.Parser --+
                   |
                  BaseConfigParser
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, file) source code
 
add(self, file) source code
 
getPath(self) source code
 
export(self) source code
 
get_float_values(self, nodes) source code
 
get_int_values(self, nodes) source code
 
get_long_values(self, nodes) source code
 
get_bool_values(self, nodes) source code
 
get_string_values(self, nodes) source code
 
get_raw_string_values(self, nodes) source code
 
get_fraction_values(self, nodes) source code
 
parseProperties(self, node, properties, error)
Parse a <property>-containing node in a configuration XML file.
source code
 
parsePlug(self, node) source code
 
parsePlugs(self, node, sockets) 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]

__init__(self, file)
(Constructor)

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.

add(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.

parseProperties(self, node, properties, error)

source code 

Parse a <property>-containing node in a configuration XML file. Ignores any subnode not named <property>.

Parameters:
Returns:
The parsed properties, as a dict of name => value. Absent optional properties will not appear in the dict.