diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-12-18 14:01:59 -0700 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-12-18 14:01:59 -0700 |
commit | dc54dee622bf9ff95a59530423ac5caa01868373 (patch) | |
tree | 77146ebd3fb1e6bcf793d78171c7d6a2a7c71ddc /ipalib/constants.py | |
parent | 46e37ab14491db06ffa46b682c079c397e644014 (diff) | |
download | freeipa-dc54dee622bf9ff95a59530423ac5caa01868373.tar.gz freeipa-dc54dee622bf9ff95a59530423ac5caa01868373.tar.xz freeipa-dc54dee622bf9ff95a59530423ac5caa01868373.zip |
Started work on per-request gettext setup
Diffstat (limited to 'ipalib/constants.py')
-rw-r--r-- | ipalib/constants.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ipalib/constants.py b/ipalib/constants.py index ef2aef72c..45c9f2785 100644 --- a/ipalib/constants.py +++ b/ipalib/constants.py @@ -25,12 +25,14 @@ All constants centralised in one file. # The parameter system treats all these values as None: NULLS = (None, '', u'', tuple(), []) - +# Standard format for TypeError message: TYPE_ERROR = '%s: need a %r; got %r (which is a %r)' - +# Stardard format for TypeError message when a callable is expected: CALLABLE_ERROR = '%s: need a callable; got %r (which is a %r)' +# Standard format for StandardError message when overriding an attribute: +OVERRIDE_ERROR = 'cannot override %s existing value %r with %r' # Used for a tab (or indentation level) when formatting for CLI: CLI_TAB = ' ' # Two spaces |