From 543aea31a4bf85d5843abd808d2200117ff35252 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Sat, 9 Aug 2008 19:33:13 +0000 Subject: [PATCH] 101: Registrar now subclasses from ReadOnly --- ipalib/plugable.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipalib/plugable.py b/ipalib/plugable.py index 63de6deb7..029c8403a 100644 --- a/ipalib/plugable.py +++ b/ipalib/plugable.py @@ -332,7 +332,7 @@ class NameSpace(ReadOnly): return '%s(<%d proxies>)' % (self.__class__.__name__, len(self)) -class Registrar(object): +class Registrar(ReadOnly): def __init__(self, *allowed): """ `*allowed` is a list of the base classes plugins can be subclassed @@ -346,6 +346,7 @@ class Registrar(object): assert inspect.isclass(base) assert base.__name__ not in self.__d self.__d[base.__name__] = {} + self.__lock__() def __findbase(self, cls): """