Logo Search packages:      
Sourcecode: sabnzbdplus version File versions

sabnzbd::utils::configobj::Section Class Reference

Inheritance diagram for sabnzbd::utils::configobj::Section:

sabnzbd::utils::configobj::ConfigObj

List of all members.


Detailed Description

A dictionary-like object that represents a section in a config file.

It does string interpolation if the 'interpolation' attribute
of the 'main' object is set to True.

Interpolation is tried first from this object, then from the 'DEFAULT'
section of this object, next from the parent and its 'DEFAULT' section,
and so on until the main object is reached.

A Section will behave like an ordered dictionary - following the
order of the ``scalars`` and ``sections`` attributes.
You can use this to change the order of members.

Iteration follows the order: scalars, then sections.

Definition at line 491 of file configobj.py.


Public Member Functions

def __delitem__
def __getitem__
def __init__
def __repr__
def __setitem__
def as_bool
def as_float
def as_int
def clear
def decode
def dict
def encode
def get
def istrue
def items
def iteritems
def iterkeys
def itervalues
def keys
def merge
def pop
def popitem
def rename
def restore_default
def restore_defaults
def setdefault
def update
def values
def walk

Public Attributes

 comments
 configspec
 default_values
 defaults
 depth
 inline_comments
 main
 name
 parent
 scalars
 sections

Private Member Functions

def _initialise
def _interpolate

Private Attributes

 _configspec_comments
 _configspec_inline_comments
 _cs_section_comments
 _cs_section_inline_comments
 _interpolation_engine
 _order

Static Private Attributes

 __iter__ = iterkeys
 __str__ = __repr__

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index