mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
101: Registrar now subclasses from ReadOnly
This commit is contained in:
parent
0e532cd7b3
commit
543aea31a4
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user