diff options
author | Jan Cholasta <jcholast@redhat.com> | 2012-03-15 04:32:37 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-03-28 14:04:31 +0200 |
commit | a2299070c86ae049fb5702a72567a820fe6eaa28 (patch) | |
tree | 6508cc953da352a626a3b0bbd18b3ba077b60994 /make-lint | |
parent | 5a55e11a2540b9fa7c0af04b375d9bdaf277642d (diff) | |
download | freeipa-a2299070c86ae049fb5702a72567a820fe6eaa28.tar.gz freeipa-a2299070c86ae049fb5702a72567a820fe6eaa28.tar.xz freeipa-a2299070c86ae049fb5702a72567a820fe6eaa28.zip |
Change parameters to use only default_from for dynamic default values.
Replace all occurences of create_default with equivalent default_from
and remove create_default from the framework. This is needed for
proper parameter validation, as there is no way to tell which
parameters to validate prior to calling create_default, because
create_default does not provide information about which parameters are
used for generating the default value.
Diffstat (limited to 'make-lint')
-rwxr-xr-x | make-lint | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -56,9 +56,9 @@ class IPATypeChecker(TypeChecker): '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', - 'sortorder', 'csv', 'csv_separator', 'csv_skipspace'], + 'default', 'default_from', 'autofill', 'query', 'attribute', + 'include', 'exclude', 'flags', 'hint', 'alwaysask', 'sortorder', + 'csv', 'csv_separator', 'csv_skipspace'], 'ipalib.parameters.Bool': ['truths', 'falsehoods'], 'ipalib.parameters.Int': ['minvalue', 'maxvalue'], 'ipalib.parameters.Decimal': ['minvalue', 'maxvalue', 'precision'], |