mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Parse comma-separated lists of values in all parameter types. This can be enabled for a specific parameter by setting the "csv" option to True.
Remove "List" parameter type and replace all occurences of it with appropriate
multi-valued parameter ("Str" in most cases) with csv enabled.
Add new parameter type "Any", capable of holding values of any type. This is
needed by the "batch" command, as "Str" is not suitable type for the "methods"
parameter.
ticket 2007
This commit is contained in:
committed by
Martin Kosek
parent
2ac9d4816a
commit
135ccf89de
42
make-lint
42
make-lint
@@ -43,30 +43,30 @@ IGNORE_PATHS = ('build', 'dist', 'install/po/test_i18n.py', 'lite-server.py',
|
||||
class IPATypeChecker(TypeChecker):
|
||||
# 'class': ('generated', 'properties',)
|
||||
ignore = {
|
||||
'ipalib.base.NameSpace': ('find',),
|
||||
'ipalib.cli.Collector': ('__options',),
|
||||
'ipalib.config.Env': ('*'),
|
||||
'ipalib.plugable.API': ('Command', 'Object', 'Method', 'Property',
|
||||
'Backend', 'log', 'plugins'),
|
||||
'ipalib.plugable.Plugin': ('Command', 'Object', 'Method', 'Property',
|
||||
'ipalib.base.NameSpace': ['find'],
|
||||
'ipalib.cli.Collector': ['__options'],
|
||||
'ipalib.config.Env': ['*'],
|
||||
'ipalib.plugable.API': ['Command', 'Object', 'Method', 'Property',
|
||||
'Backend', 'log', 'plugins'],
|
||||
'ipalib.plugable.Plugin': ['Command', 'Object', 'Method', 'Property',
|
||||
'Backend', 'env', 'debug', 'info', 'warning', 'error', 'critical',
|
||||
'exception', 'context', 'log'),
|
||||
'ipalib.plugins.baseldap.CallbackInterface': ('pre_callback',
|
||||
'post_callback', 'exc_callback'),
|
||||
'ipalib.plugins.misc.env': ('env',),
|
||||
'ipalib.parameters.Param': ('cli_name', 'cli_short_name', 'label',
|
||||
'exception', 'context', 'log'],
|
||||
'ipalib.plugins.baseldap.CallbackInterface': ['pre_callback',
|
||||
'post_callback', 'exc_callback'],
|
||||
'ipalib.plugins.misc.env': ['env'],
|
||||
'ipalib.parameters.Param': ['cli_name', 'cli_short_name', 'label',
|
||||
'doc', 'required', 'multivalue', 'primary_key', 'normalizer',
|
||||
'default', 'default_from', 'create_default', 'autofill', 'query',
|
||||
'attribute', 'include', 'exclude', 'flags', 'hint', 'alwaysask'),
|
||||
'ipalib.parameters.Bool': ('truths', 'falsehoods'),
|
||||
'ipalib.parameters.Int': ('minvalue', 'maxvalue'),
|
||||
'ipalib.parameters.Float': ('minvalue', 'maxvalue'),
|
||||
'ipalib.parameters.Data': ('minlength', 'maxlength', 'length',
|
||||
'pattern', 'pattern_errmsg'),
|
||||
'ipalib.parameters.Enum': ('values',),
|
||||
'ipalib.parameters.List': ('separator', 'skipspace'),
|
||||
'ipalib.parameters.File': ('stdin_if_missing'),
|
||||
'urlparse.SplitResult': ('netloc',),
|
||||
'attribute', 'include', 'exclude', 'flags', 'hint', 'alwaysask',
|
||||
'sortorder', 'csv', 'csv_separator', 'csv_skipspace'],
|
||||
'ipalib.parameters.Bool': ['truths', 'falsehoods'],
|
||||
'ipalib.parameters.Int': ['minvalue', 'maxvalue'],
|
||||
'ipalib.parameters.Float': ['minvalue', 'maxvalue'],
|
||||
'ipalib.parameters.Data': ['minlength', 'maxlength', 'length',
|
||||
'pattern', 'pattern_errmsg'],
|
||||
'ipalib.parameters.Enum': ['values'],
|
||||
'ipalib.parameters.File': ['stdin_if_missing'],
|
||||
'urlparse.SplitResult': ['netloc'],
|
||||
}
|
||||
|
||||
def _related_classes(self, klass):
|
||||
|
||||
Reference in New Issue
Block a user