- ConfigParserEnhanced is currently _alpha_ and has many changes occurring.
Added
- Added `enter_handler()` method to `ConfigParserEnhanced`.
This should be called immediately upon entry to a handler to provide
logging information that can be useful when debugging.
This is in the public api -- not that we encourage a subclass to modify
it much but we encourage subclasses to use it in their custom handlers.
- Added `exit_handler()` method to `ConfigParserEnhanced`
This should be called just before a handler exits to provide
logging and information that can be useful when debugging.
This is in the public api -- not that we encourage a subclass to modify
it much but we encourage subclasses to use it in their custom handlers.
- Added `_launch_handler_generic` method to `ConfigParserEnhanced` which
is a wrapper to launching `handler_generic`. This handles launching
the generic handler and updating the `configparserenhanceddata` structure.
- This was also useful because we launch the generic handler from two
places in the parser.
Changed
- Moved `__version__` string to a new file, `version.py`
- Replaced `setup.py` with `pyproject.toml`
- Generated using the *poetry* package (`python3 -m pip install --user poetry`).
- Updated `ConfigParserEnahanced._new_handler_parameters` to create a 'new'
`HandlerParameters` object when called that copies in the `data_shared` and
`data_internal` references from the caller but creates new entries for the
other pieces. This fixed a bug in recursion of `use <section>` entries where
the handler that is called would overwrite parts of `handler_parameters` which,
as a side effect, would change the state to the caller in the recursion.
- Modified the API to `_new_handler_parameters`
- Added
Deprecated
Removed