Package ndg :: Package soap :: Package utils :: Module configfileparsers :: Class CaseSensitiveConfigParser
[hide private]

Class CaseSensitiveConfigParser

source code


Subclass the SafeConfigParser - to preserve the original string case of the cfg section names - NB, the RawConfigParser default is to lowercase these by default

Instance Methods [hide private]
basestring
optionxform(self, optionstr)
Returns: option name with case preserved
source code

Inherited from ConfigParser.SafeConfigParser: set

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

Inherited from ConfigParser.ConfigParser: get, items

Inherited from ConfigParser.ConfigParser (private): _interpolation_replace

Inherited from ConfigParser.RawConfigParser: __init__, add_section, defaults, getboolean, getfloat, getint, has_option, has_section, options, 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, OPTCRE_NV, SECTCRE

Inherited from ConfigParser.RawConfigParser (private): _boolean_states

Method Details [hide private]

optionxform(self, optionstr)

source code 
Parameters:
  • optionstr (basestring) - config file option name
Returns: basestring
option name with case preserved
Overrides: ConfigParser.RawConfigParser.optionxform