freeipa/ipapython/install
Fraser Tweedale c5afee964e cli: simplify parsing of arbitrary types
Add the 'constructor' type to IPAOption to allow parsing arbitrary
types.

When using this type, supply the 'constructor' attribute with the
constructor of the type.  The checker for the 'constructor' type
attempts to construct the data, returning if successful else raising
OptionValueError.

The 'knob' interface remains unchanged but now accepts arbitrary
constructors.

This feature subsumes the '_option_callback' mechanism, which has
been refactored away.

This feature also subsumes the "dn" type in IPAOption, but this
refactor is deferred.

Part of: https://pagure.io/freeipa/issue/6858

Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2017-10-04 10:09:18 +02:00
..
__init__.py install: Introduce installer framework ipapython.install 2015-06-08 15:34:11 +00:00
cli.py cli: simplify parsing of arbitrary types 2017-10-04 10:09:18 +02:00
common.py logging: do not reference loggers in arguments and attributes 2017-07-14 15:55:59 +02:00
core.py logging: do not reference loggers in arguments and attributes 2017-07-14 15:55:59 +02:00
typing.py install: use standard Python classes to declare knob types 2016-11-11 12:17:25 +01:00
util.py install.util: disable no-value-for-parameter 2017-09-08 15:42:07 +02:00