MCPcopy
hub / github.com/pyload/pyload / remove

Method remove

module/lib/bottle.py:1481–1486  ·  view source on GitHub ↗

Remove a callback from a hook.

(self, name, func)

Source from the content-addressed store, hash-verified

1479 if self.app and was_empty and not self._empty(): self.app.reset()
1480
1481 def remove(self, name, func):
1482 ''' Remove a callback from a hook. '''
1483 was_empty = self._empty()
1484 if name in self.hooks and func in self.hooks[name]:
1485 self.hooks[name].remove(func)
1486 if self.app and not was_empty and self._empty(): self.app.reset()
1487
1488 def trigger(self, name, *a, **ka):
1489 ''' Trigger a hook and return a list of results. '''

Callers 15

get_sourceFunction · 0.45
generate_localeFunction · 0.45
makepotFunction · 0.45
deletePidFileMethod · 0.45
removeTaskMethod · 0.45
deactivateHookMethod · 0.45
removeEventMethod · 0.45
runMethod · 0.45
runMethod · 0.45
finishFileMethod · 0.45
runMethod · 0.45
unregisterSubFunction · 0.45

Calls 2

_emptyMethod · 0.95
resetMethod · 0.45

Tested by

no test coverage detected