dispatches event with args
(self, event, *args)
| 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 |
no test coverage detected