1
class PluginWrapper(object):
3
def __init__(self, plugin, methods):
5
self.__methods = methods
10
def __getattr__(self, key):
12
methods = self.__methods
13
plugin = self.__plugin
15
return getattr(plugin, key)
17
raise KeyError("No such method: %s" % (key))