Table of Contents

Class: IIniParser ./src/peak/config/interfaces.py

Parser object passed to ISettingParser instances

Base Classes   
Interface
Methods   
add_global
add_setting
  add_global 
add_global ( name,  value )

Add/update a global variable for rules evaluation

This creates a new globalDict attribute, so that rules parsed before this global was added, will still be using the globals that were in effect when the rule was parsed.

  add_setting 
add_setting (
        section,
        name,
        value,
        lineInfo,
        )

Define a configuration rule for 'section'+name = value Note that when this method is called by the IIniParser itself, section already has the prefix attribute added to it, and it is already formatted as a property prefix. So, for a section like:

            <a href="#foo">[foo]</a>
            bar = baz

        and a parser 'prefix' of '"some.prefix."', this method gets called
        with '("some.prefix.foo.", "bar", "baz", ...)'.


Table of Contents

This document was automatically generated on Mon Nov 11 01:11:04 2024 by HappyDoc version 2.1