Package lemon :: Package external :: Package docutils :: Module frontend :: Class ConfigParser
[show private | hide private]
[frames | no frames]

Class ConfigParser

RawConfigParser --+    
                  |    
       ConfigParser --+
                      |
                     ConfigParser


Method Summary
  get_section(self, section, raw, vars)
Return a given section as a dictionary (empty if the section doesn't exist).
  optionxform(self, optionstr)
Transform '-' to '_' so the cmdline form of option names can be used.
  read(self, filenames, option_parser)
  read_standard_files(self, option_parser)
  validate_options(self, filename, option_parser)
    Inherited from ConfigParser
  get(self, section, option, raw, vars)
Get an option value for a given section.
  items(self, section, raw, vars)
Return a list of tuples with (name, value) for each option in the section.

Class Variable Summary
tuple standard_config_files = ('/etc/docutils.conf', './docuti...
dict validation = {'options': {'error_encoding': <function va...

Method Details

get_section(self, section, raw=0, vars=None)

Return a given section as a dictionary (empty if the section doesn't exist).

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.

optionxform(self, optionstr)

Transform '-' to '_' so the cmdline form of option names can be used.
Overrides:
ConfigParser.RawConfigParser.optionxform

Class Variable Details

standard_config_files

Type:
tuple
Value:
('/etc/docutils.conf', './docutils.conf', 'C:\\Xeocs\\Dev/.docutils')  

validation

Type:
dict
Value:
{'options': {'error_encoding': <function validate_encoding at 0x01346D\
F0>,
             'error_encoding_error_handler': <function validate_encodi\
ng_error_handler at 0x01346E70>,
             'input_encoding': <function validate_encoding at 0x01346D\
F0>,
             'output_encoding': <function validate_encoding at 0x01346\
DF0>,
...                                                                    

Generated by Epydoc 2.0 on Mon Nov 10 15:07:55 2003 http://epydoc.sf.net