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

Module config

source code

configuration parsing utilities. Base classes for parsing of flumotion configuration files


Version: $Rev: 6982 $

Classes [hide private]
  ConfigEntryPlug
I represent a <plug> entry in a planet config file
  BaseConfigParser
Functions [hide private]
 
parsePropertyValue(propName, type, value) source code
 
parseCompoundPropertyValue(name, definition, value) source code
 
buildPropertyDict(propertyList, propertySpecList)
Build a property dict suitable for forming part of a component config.
source code
 
buildPlugsSet(plugsList, sockets)
Build a plugs dict suitable for forming part of a component config.
source code
Function Details [hide private]

buildPropertyDict(propertyList, propertySpecList)

source code 

Build a property dict suitable for forming part of a component config.

Parameters:
  • propertyList (List of (name, value)) - List of property name-value pairs. For example, [('foo', 'bar'), ('baz', 3)] defines two property-value pairs. The values will be parsed into the appropriate types, this it is allowed to pass the string '3' for an int value.
  • propertySpecList (List of flumotion.common.registry.RegistryEntryProperty) - The set of allowed and required properties

buildPlugsSet(plugsList, sockets)

source code 

Build a plugs dict suitable for forming part of a component config.

Parameters:
  • plugsList (List of (type, propertyList)) - List of plugs, as type-propertyList pairs. For example, [('frag', [('foo', 'bar')])] defines a plug of type 'frag', and the propertyList representing that plug's properties. The properties will be validated against the plug's properties as defined in the registry.
  • sockets (List of str) - The set of allowed sockets