'Check minimum intervals for event registration and return
all currently blocked events
@param person_id: the person record ID
@param type_id: check only this event type (rather than all)
@return: a dict of blocked event types:
{type_id: (reason, blocked_until)}'

def get_blocked_events(self, person_id, type_id=None):

    check_intervals = self.check_intervals
    if (check_intervals and callable(check_intervals)):
        blocked = check_intervals(person_id, type_id=type_id)
    else:
        blocked = {}
    return blocked
