diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-12-11 18:07:54 -0700 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-12-11 18:07:54 -0700 |
commit | 5c47b56d14d56b825cbfe6a06e056bb98fbb2378 (patch) | |
tree | 01fb2b62eba670150aa5c1715173b0c688efa0a2 /ipalib/constants.py | |
parent | 22209a0f0333526fe953a66f6ea4dd1be18dddc6 (diff) | |
download | freeipa-5c47b56d14d56b825cbfe6a06e056bb98fbb2378.tar.gz freeipa-5c47b56d14d56b825cbfe6a06e056bb98fbb2378.tar.xz freeipa-5c47b56d14d56b825cbfe6a06e056bb98fbb2378.zip |
Finished kwarg validation and extension mechanism in parameter.Param
Diffstat (limited to 'ipalib/constants.py')
-rw-r--r-- | ipalib/constants.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipalib/constants.py b/ipalib/constants.py index 06ff99d5e..d028a0013 100644 --- a/ipalib/constants.py +++ b/ipalib/constants.py @@ -26,6 +26,12 @@ All constants centralised in one file. NULLS = (None, '', u'', tuple(), []) +TYPE_ERROR = '%s: need a %r; got %r (a %r)' + + +CALLABLE_ERROR = '%s: need a callable; got %r (a %r)' + + # Used for a tab (or indentation level) when formatting for CLI: CLI_TAB = ' ' # Two spaces |