From 5c47b56d14d56b825cbfe6a06e056bb98fbb2378 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Thu, 11 Dec 2008 18:07:54 -0700 Subject: Finished kwarg validation and extension mechanism in parameter.Param --- ipalib/constants.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ipalib/constants.py') diff --git a/ipalib/constants.py b/ipalib/constants.py index 06ff99d5..d028a001 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 -- cgit