Package ganeti :: Module ovf :: Class ConfigParserWithDefaults
[hide private]
[frames] | no frames]

Class ConfigParserWithDefaults

source code


This is just a wrapper on SafeConfigParser, that uses default values

Instance Methods [hide private]
 
get(self, section, options, raw=None, vars=None)
Get an option value for a given section.
source code
 
getint(self, section, options) source code

Inherited from ConfigParser.SafeConfigParser: set

Inherited from ConfigParser.SafeConfigParser (private): _interpolate, _interpolate_some

Inherited from ConfigParser.ConfigParser: items

Inherited from ConfigParser.ConfigParser (private): _interpolation_replace

Inherited from ConfigParser.RawConfigParser: __init__, add_section, defaults, getboolean, getfloat, has_option, has_section, options, optionxform, read, readfp, remove_option, remove_section, sections, write

Inherited from ConfigParser.RawConfigParser (private): _get, _read

Class Variables [hide private]

Inherited from ConfigParser.SafeConfigParser (private): _interpvar_re

Inherited from ConfigParser.ConfigParser (private): _KEYCRE

Inherited from ConfigParser.RawConfigParser: OPTCRE, SECTCRE

Inherited from ConfigParser.RawConfigParser (private): _boolean_states

Method Details [hide private]

get(self, section, options, raw=None, vars=None)

source code 

Get an option value for a given section.

All % interpolations are expanded in the return values, based on the defaults passed into the constructor, unless the optional argument `raw' is true. Additional substitutions may be provided using the `vars' argument, which must be a dictionary whose contents overrides any pre-existing defaults.

The section DEFAULT is special.

Overrides: ConfigParser.RawConfigParser.get

getint(self, section, options)

source code 
Overrides: ConfigParser.RawConfigParser.getint