Package CMFCore :: Module FSMetadata :: Class CMFConfigParser
[show private | hide private]
[frames | no frames]

Class CMFConfigParser

RawConfigParser --+    
                  |    
       ConfigParser --+
                      |
                     CMFConfigParser


This our wrapper around ConfigParser to solve a few minor niggles with the code
Method Summary
  optionxform(self, optionstr)
Stop converting the key to lower case, very annoying for security etc
    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.
  _interpolate(self, section, option, rawval, vars)
    Inherited from RawConfigParser
  __init__(self, defaults)
  _get(self, section, conv, option)
  _read(self, fp, fpname)
Parse a sectioned setup file.
  add_section(self, section)
Create a new section in the configuration.
  defaults(self)
  getboolean(self, section, option)
  getfloat(self, section, option)
  getint(self, section, option)
  has_option(self, section, option)
Check for the existence of a given option in a given section.
  has_section(self, section)
Indicate whether the named section is present in the configuration.
  options(self, section)
Return a list of option names for the given section name.
  read(self, filenames)
Read and parse a filename or a list of filenames.
  readfp(self, fp, filename)
Like read() but the argument must be a file-like object.
  remove_option(self, section, option)
Remove an option.
  remove_section(self, section)
Remove a file section.
  sections(self)
Return a list of section names, excluding [DEFAULT]
  set(self, section, option, value)
Set an option.
  write(self, fp)
Write an .ini-format representation of the configuration state.

Class Variable Summary
SRE_Pattern OPTCRE = ([\]-\[ \w_\.\*,\(\)\{\}]+)[ \t]*([:=])[ \t]*(....
    Inherited from RawConfigParser
dict _boolean_states = {'on': True, 'false': False, 'no': Fal...
SRE_Pattern SECTCRE = \[([^\]]+)\]

Method Details

optionxform(self, optionstr)

Stop converting the key to lower case, very annoying for security etc
Overrides:
ConfigParser.RawConfigParser.optionxform

Class Variable Details

OPTCRE

Type:
SRE_Pattern
Value:
([\]-\[ \w_\.\*,\(\)\{\}]+)[ \t]*([:=])[ \t]*(.*)$                     

Generated by Epydoc 2.1 on Wed Nov 30 03:59:43 2005 http://epydoc.sf.net