diff options
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r-- | ipalib/parameters.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py index 819a158f..0630915c 100644 --- a/ipalib/parameters.py +++ b/ipalib/parameters.py @@ -1254,6 +1254,18 @@ class List(Param): return +class File(Str): + """ + File parameter type. + + Accepts file names and loads their content into the parameter value. + """ + kwargs = Str.kwargs + ( + # valid for CLI, other backends (e.g. webUI) can ignore this + ('stdin_if_missing', bool, False), + ) + + class GeneralizedTime(Str): """ Generalized time parameter type. |