def _process(self, event):
    for callback in self:
        if callback.isActive():
            if callback.canProcess(event):
                msg = 'Dispatching event %d to callback %s.'
                self.logger.debug(msg, event['id'], str(callback))
                if (not callback.process(event)):
                    self._active = False
                    break
        else:
            msg = 'Skipping inactive callback %s in plugin.'
            self.logger.debug(msg, str(callback))
    return self._active
def _process(self, event):
    for callback in self:
        if callback.isActive():
            if callback.canProcess(event):
                msg = 'Dispatching event %d to callback %s.'
                self.logger.debug(msg, event['id'], str(callback))
                if (not callback.process(event)):
                    self._active = False
                    break
        else:
            msg = 'Skipping inactive callback %s in plugin.'
            self.logger.debug(msg, str(callback))
    return self._active