parent
237ac8562f
commit
9020bf48b7
|
@ -181,10 +181,8 @@ class PluginManager(object):
|
||||||
def make_hook_caller(self, name, plugins):
|
def make_hook_caller(self, name, plugins):
|
||||||
caller = getattr(self.hook, name)
|
caller = getattr(self.hook, name)
|
||||||
methods = self.listattr(name, plugins=plugins)
|
methods = self.listattr(name, plugins=plugins)
|
||||||
if methods:
|
return HookCaller(caller.name, caller.firstresult,
|
||||||
return HookCaller(caller.name, caller.firstresult,
|
argnames=caller.argnames, methods=methods)
|
||||||
argnames=caller.argnames, methods=methods)
|
|
||||||
return caller
|
|
||||||
|
|
||||||
def register(self, plugin, name=None):
|
def register(self, plugin, name=None):
|
||||||
""" Register a plugin with the given name and ensure that all its
|
""" Register a plugin with the given name and ensure that all its
|
||||||
|
|
Loading…
Reference in New Issue