Package trac :: Module config :: Class ConfigSection

Class ConfigSection

source code

object --+
         |
        ConfigSection

Descriptor for configuration sections.
Instance Methods
 
__init__(self, name, doc, doc_domain='tracini', doc_args=None)
Create the configuration section.
source code
 
__get__(self, instance, owner) source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
 
get_registry(compmgr=None)
Return the section registry, as a dict mapping section names to ConfigSection objects.
source code
Class Variables
  registry = {'components': <ConfigSection [components]>, 'extra...
Properties
  doc
Return localized document of the section

Inherited from object: __class__

Method Details

get_registry(compmgr=None)
Static Method

source code 

Return the section registry, as a dict mapping section names to ConfigSection objects.

If compmgr is specified, only return sections for components that are enabled in the given ComponentManager.

__init__(self, name, doc, doc_domain='tracini', doc_args=None)
(Constructor)

source code 
Create the configuration section.
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

Class Variable Details

registry

Value:
{'components': <ConfigSection [components]>,
 'extra-permissions': <ConfigSection [extra-permissions]>,
 'http-headers': <ConfigSection [http-headers]>,
 'intertrac': <ConfigSection [intertrac]>,
 'interwiki': <ConfigSection [interwiki]>,
 'mainnav': <ConfigSection [mainnav]>,
 'metanav': <ConfigSection [metanav]>,
 'milestone-groups': <ConfigSection [milestone-groups]>,
...

Property Details

doc

Return localized document of the section
Get Method:
unreachable.doc(self) - Return localized document of the section