(self, name, *a, **ka)
return [hook(*a, **ka) for hook in hooks]
Trigger a hook and return a list of results.
Trigger a hook and return a list of results.
Trigger a hook and return a list of results .
def trigger(self, name, *a, **ka):
        ''' Trigger a hook and return a list of results. '''
        hooks = self.hooks[name]
        if ka.pop('reversed', False): hooks = hooks[::-1]
        return [hook(*a, **ka) for hook in hooks]
def trigger ( self , name , * a , * * ka ) : hooks = self . hooks [ name ] if ka . pop ( 'reversed' , False ) : hooks = hooks [ : : - 1 ] return [ hook ( * a , * * ka ) for hook in hooks ]