def canProcess(self, event):
    if (not self._matchEvents):
        return True
    if ('*' in self._matchEvents):
        eventType = '*'
    else:
        eventType = event['event_type']
        if (eventType not in self._matchEvents):
            return False
    attributes = self._matchEvents[eventType]
    if ((attributes is None) or ('*' in attributes)):
        return True
    if (event['attribute_name'] and (event['attribute_name'] in attributes)):
        return True
    return False
def canProcess(self, event):
    if (not self._matchEvents):
        return True
    if ('*' in self._matchEvents):
        eventType = '*'
    else:
        eventType = event['event_type']
        if (eventType not in self._matchEvents):
            return False
    attributes = self._matchEvents[eventType]
    if ((attributes is None) or ('*' in attributes)):
        return True
    if (event['attribute_name'] and (event['attribute_name'] in attributes)):
        return True
    return False