freeipa/ipalib
Stanislav Laznicka 5ff1de8490 parameters: relax type checks
Previously, the type check of the Param class did only allow
the parameters to only have a value that's of a direct type.
However, that's nonsensically restrictive. For example, if
there's an interface implemented as an `ABCMeta` class then
the check for type fails since the interface's type is
`ABCMeta` instead of directly a `type`. Among others,
this is the case for cryptography.x509.Certificate.

Being a type is a transitive property of a Python object and we
should respect that in our framework.

https://pagure.io/freeipa/issue/4985

Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Martin Basti <mbasti@redhat.com>
2017-07-27 10:28:58 +02:00
..
install x509: Make certificates represented as objects 2017-07-27 10:28:58 +02:00
__init__.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
aci.py Remove unused variables in the code 2016-09-27 13:35:58 +02:00
backend.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
base.py Modernize use of range() 2015-09-01 11:42:01 +02:00
capabilities.py Replace LooseVersion 2016-11-24 15:46:40 +01:00
cli.py logging: do not reference loggers in arguments and attributes 2017-07-14 15:55:59 +02:00
config.py config: provide defaults for xmlrpc_uri, ldap_uri and basedn 2017-07-04 12:06:33 +02:00
constants.py config: provide defaults for xmlrpc_uri, ldap_uri and basedn 2017-07-04 12:06:33 +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 csrgen: Add code to generate scripts that generate CSRs 2017-01-31 10:20:28 +01:00
frontend.py logging: do not log into the root logger 2017-07-14 15:55:59 +02:00
krb_utils.py Allow login to WebUI using Kerberos aliases/enterprise principals 2017-03-08 15:56:11 +01:00
Makefile.am Build: Makefiles for Python packages 2016-11-09 13:08:32 +01:00
messages.py Fix malformed or missing docstrings in ipalib/messages 2016-08-16 11:59:35 +02:00
misc.py Add fix for ipa plugins command 2017-02-17 10:22:07 +01:00
output.py allow 'value' output param in commands without primary key 2016-07-20 13:57:01 +02:00
parameters.py parameters: relax type checks 2017-07-27 10:28:58 +02:00
pkcs10.py cert-request: accept CSRs with extraneous data 2016-11-11 15:42:26 +01:00
plugable.py logging: make sure logging level is set to proper value 2017-07-26 15:57:56 +02:00
request.py remove trailing newlines form python modules 2016-10-12 10:38:52 +02:00
rpc.py logging: do not log into the root logger 2017-07-14 15:55:59 +02:00
setup.cfg Port all setup.py to setuptools 2016-10-20 18:43:37 +02:00
setup.py setup, pylint, spec file: drop python-nss dependency 2017-03-31 12:20:35 +02:00
text.py Python3 pylint fixes 2016-11-25 16:18:22 +01:00
util.py logging: do not log into the root logger 2017-07-14 15:55:59 +02:00
x509.py Introduce load_unknown_x509_certificate() 2017-07-27 10:28:58 +02:00