moul :: config :: Configuration :: Class Configuration
[hide private]
[frames] | no frames]

Class Configuration



object --+    
         |    
      dict --+
             |
            Configuration

Instance Methods [hide private]
  getOption(self, section, name=None, default=_marker)
Get configuration option
  setOption(self, section, name=None, value=_marker)
Set configuratin option
  addSection(self, section)
Add a new configuration section
  listConfig(self)
List

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __init__, __iter__, __le__, __len__, __lt__, __ne__, __repr__, __setitem__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__


Static Methods [hide private]
  __new__(cls, *args, **kwargs)

Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__new__(cls, *args, **kwargs)
Static Method

 
Returns:
a new object with type S, a subtype of T

Overrides: dict.__new__
(inherited documentation)

getOption(self, section, name=None, default=_marker)

 
Get configuration option

setOption(self, section, name=None, value=_marker)

 
Set configuratin option

addSection(self, section)

 
Add a new configuration section

listConfig(self)

 
List
>>> cfg = listConfig()
>>> len(cfg) > 0
True
>>> type(cfg)
<type 'dict'>