Modify PluginProxy to use __public__ defined in derived classes instead of base classes.

This commit is contained in:
Pavel Zuna authored and Rob Crittenden committed 2009-06-10 11:53:07 -04:00
1 parent 789fec4381
commit c47d716e95
1 file changed
+4 -1
+4 -1
View File
@@ -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