Package svnmailer :: Package settings :: Module _fileparser :: Class Section
[show private | hide private]
[frames | no frames]

Class Section

object --+
         |
        Section


Represents a config section
Method Summary
  __init__(self, name)
Initialization
  __delitem__(self, name)
Removes the option specified by name
iter __iter__(self)
Returns an option iterator
int __len__(self)
Determines the number of stored options
  add(self, option)
Adds a new option to the section
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...

Instance Variable Summary
dict _options: The parsed options
str name: The section name

Method Details

__init__(self, name)
(Constructor)

Initialization
Parameters:
name - The section name
           (type=str)
Overrides:
__builtin__.object.__init__

__delitem__(self, name)
(Index deletion operator)

Removes the option specified by name
Parameters:
name - The name of the option to remove
           (type=str)
Raises:
KeyError - The option does not exist

__iter__(self)

Returns an option iterator
Returns:
iterator object
           (type=iter)

__len__(self)
(Length operator)

Determines the number of stored options
Returns:
The number of stored options
           (type=int)

add(self, option)

Adds a new option to the section
Parameters:
option - The option to add
           (type=Option)

Instance Variable Details

_options

The parsed options
Type:
dict

name

The section name
Type:
str

Generated by Epydoc 2.0 on Sun Sep 25 20:49:14 2005 http://epydoc.sf.net