From c47d716e95fd774ed7448207d9b1682d1a3aa3a9 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Wed, 10 Jun 2009 14:11:26 +0200 Subject: Modify PluginProxy to use __public__ defined in derived classes instead of base classes. --- ipalib/plugable.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipalib/plugable.py') diff --git a/ipalib/plugable.py b/ipalib/plugable.py index c0a4c3567..ba7ac711b 100644 --- a/ipalib/plugable.py +++ b/ipalib/plugable.py @@ -345,7 +345,10 @@ class PluginProxy(SetProxy): self.__base = base self.__target = target self.__name_attr = name_attr - self.__public__ = base.__public__ + if hasattr(type(target), '__public__'): + self.__public__ = type(target).__public__ + else: + self.__public__ = base.__public__ self.name = getattr(target, name_attr) self.doc = target.doc assert type(self.__public__) is frozenset -- cgit