freeipa/ipalib
Jan Cholasta e9c1d21b9f parameters: move the confirm kwarg to Param
Whether a parameter is treated like password is determined by the
`password` class attribute defined in the Param class. Whether the CLI will
asks for confirmation of a password parameter depends on the value of the
`confirm` kwarg of the Password class.

Move the `confirm` kwarg from the Password class to the Param class, so
that it can be used by any Param subclass which has the `password` class
attribute set to True.

This fixes confirmation of the --key option of otptoken-add, which is a
Bytes subclass with `password` set to True.

https://fedorahosted.org/freeipa/ticket/6174

Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: David Kupka <dkupka@redhat.com>
2016-08-10 08:51:39 +02:00
..
__init__.py ipalib: move server-side plugins to ipaserver 2016-06-03 09:00:34 +02:00
aci.py ipalib.aci: Port to Python 3 2015-10-13 14:16:32 +02:00
backend.py rpc: specify connection options in API config 2016-06-03 09:00:34 +02:00
base.py Modernize use of range() 2015-09-01 11:42:01 +02:00
capabilities.py dns_name_values capability added 2014-06-03 15:55:32 +02:00
certstore.py Modernize 'except' clauses 2015-08-12 18:17:23 +02:00
cli.py help: Do not create instances to get information about commands and topics 2016-08-03 16:32:39 +02:00
config.py env: Add 'server' variable to api.env 2016-06-28 15:03:42 +02:00
constants.py CA replica promotion: add proper CA DNS records 2016-06-28 16:56:35 +02:00
crud.py ipalib, ipaserver: fix incorrect API.register calls in docstrings 2016-05-25 16:06:26 +02:00
dns.py dns: do not rely on custom param fields in record attributes 2016-06-20 16:39:12 +02:00
errors.py cert-request: better error msg when 'add' not supported 2016-06-30 15:42:06 +02:00
frontend.py frontend: Change doc, summary, topic and NO_CLI to class properties 2016-08-03 16:32:39 +02:00
krb_utils.py pylint: supress false positive no-member errors 2016-03-02 14:57:36 +01:00
Makefile Package ipapython, ipalib, ipaplatform, ipatests for Python 3 2015-12-17 10:52:57 +01:00
messages.py messages: specify message type for ResultFormattingError 2016-07-15 13:55:36 +02:00
output.py allow 'value' output param in commands without primary key 2016-07-20 13:57:01 +02:00
parameters.py parameters: move the confirm kwarg to Param 2016-08-10 08:51:39 +02:00
pkcs10.py Remove unused imports 2015-12-23 07:59:22 +01:00
plugable.py help: Do not create instances to get information about commands and topics 2016-08-03 16:32:39 +02:00
request.py ipalib: provide per-call command context 2016-03-03 10:06:18 +01:00
rpc.py ipalib: introduce Principal parameter 2016-07-01 09:37:25 +02:00
setup.py.in pylint: fix: multiple-statements 2016-06-21 13:51:28 +02:00
text.py Remove unused imports 2015-12-23 07:59:22 +01:00
util.py harden the check for trust namespace overlap in new principals 2016-07-28 09:34:43 +02:00
x509.py Remove service and host cert issuer validation 2016-06-06 08:58:01 +02:00