MCPcopy Index your code
hub / github.com/pyload/pyload / dispatchEvent

Method dispatchEvent

module/HookManager.py:306–316  ·  view source on GitHub ↗

dispatches event with args

(self, event, *args)

Source from the content-addressed store, hash-verified

304 self.events[event].remove(func)
305
306 def dispatchEvent(self, event, *args):
307 """dispatches event with args"""
308 if event in self.events:
309 for f in self.events[event]:
310 try:
311 f(*args)
312 except Exception, e:
313 self.log.warning("Error calling event handler %s: %s, %s, %s"
314 % (event, f, args, str(e)))
315 if self.core.debug:
316 traceback.print_exc()
317

Callers 15

coreReadyMethod · 0.95
coreExitingMethod · 0.95
downloadPreparingMethod · 0.95
downloadFinishedMethod · 0.95
downloadFailedMethod · 0.95
packageFinishedMethod · 0.95
beforeReconnectingMethod · 0.95
afterReconnectingMethod · 0.95
setConfigValueMethod · 0.80
addLinksMethod · 0.80
deletePackageMethod · 0.80
checkAllLinksFinishedMethod · 0.80

Calls 1

fFunction · 0.50

Tested by

no test coverage detected