Table of Contents

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

Handler for name=value settings in an .ini file section

Base Classes   
Interface
Methods   
__call__
  __call__ 
__call__ (
        parser,
        section,
        name,
        value,
        lineInfo,
        )

Act on name = value in section section

parser is an IIniParser for the file being parsed, and lineInfo is a tuple of (filename, lineNumber, lineContents). Typically, a setting parser will perform some operation(s) on parser.pMap in response to each setting it receives.

If you want to use the standard parser's interpretation of the name and value, you can call parser.add_setting(), but be sure to provide compatible arguments, as add_setting() expects its section argument to be a valid, ready-to-use prefix for its name argument.


Table of Contents

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