diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-14 23:49:36 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-14 23:49:36 +0000 |
commit | 88a5b3ae2587ef71efecc1b59eb9ec94e09cacad (patch) | |
tree | 86b4830c463c110f5c130501a78f6567457c11fe /ipalib/plugable.py | |
parent | 07cd5372779fe88b1dd6c252e157b48a944c4669 (diff) | |
download | freeipa.git-88a5b3ae2587ef71efecc1b59eb9ec94e09cacad.tar.gz freeipa.git-88a5b3ae2587ef71efecc1b59eb9ec94e09cacad.tar.xz freeipa.git-88a5b3ae2587ef71efecc1b59eb9ec94e09cacad.zip |
169: Renamed DictProxy to MagicDict
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r-- | ipalib/plugable.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py index 8d6a8047..45c73354 100644 --- a/ipalib/plugable.py +++ b/ipalib/plugable.py @@ -492,11 +492,11 @@ class NameSpace(ReadOnly): return '%s(<%d members>)' % (self.__class__.__name__, len(self)) -class DictProxy(ReadOnly): +class MagicDict(ReadOnly): """ A read-only dict whose items can also be accessed as attributes. - Although a DictProxy is read-only, the underlying dict can change (and is + Although a MagicDict is read-only, the underlying dict can change (and is assumed to). One of these is created for each allowed base in a `Registrar` instance. @@ -576,7 +576,7 @@ class Registrar(ReadOnly): self.base = base self.name = base.__name__ self.sub_d = dict() - self.dictproxy = DictProxy(self.sub_d) + self.dictproxy = MagicDict(self.sub_d) lock(self) self.__allowed = allowed @@ -645,7 +645,7 @@ class Registrar(ReadOnly): def __getitem__(self, key): """ - Returns the DictProxy for plugins subclassed from the base named ``key``. + Returns the MagicDict for plugins subclassed from the base named ``key``. """ if key not in self.__d: raise KeyError('no base class named %r' % key) |