summaryrefslogtreecommitdiffstats
path: root/ipalib/constants.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-12-22 17:29:11 -0700
committerJason Gerard DeRose <jderose@redhat.com>2008-12-22 17:29:11 -0700
commit6b055b435f93bf9b63ee9b3b2fdd6f082dacc07b (patch)
tree8cc5e393ae83974ac474b28b887673a1ca1db735 /ipalib/constants.py
parent014cca57ad31f0ff9230923c8b7fdb1b59157dae (diff)
downloadfreeipa-6b055b435f93bf9b63ee9b3b2fdd6f082dacc07b.tar.gz
freeipa-6b055b435f93bf9b63ee9b3b2fdd6f082dacc07b.tar.xz
freeipa-6b055b435f93bf9b63ee9b3b2fdd6f082dacc07b.zip
Cleaned up Env.__setattr__() and Env.__setitem__() a bit updated their unit tests
Diffstat (limited to 'ipalib/constants.py')
-rw-r--r--ipalib/constants.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ipalib/constants.py b/ipalib/constants.py
index ef7de44c3..c74808d6d 100644
--- a/ipalib/constants.py
+++ b/ipalib/constants.py
@@ -32,7 +32,12 @@ TYPE_ERROR = '%s: need a %r; got %r (which is a %r)'
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 value %r with %r'
+OVERRIDE_ERROR = 'cannot override %s.%s value %r with %r'
+
+# Standard format for AttributeError message when a read-only attribute is
+# already locked:
+LOCK_ERROR = 'locked: cannot set %s.%s to %r'
+DEL_ERROR = 'locked: cannot set %s.%s to %r'
# Used for a tab (or indentation level) when formatting for CLI:
CLI_TAB = ' ' # Two spaces