def METHOD_NAME(self, listener):
    """Register a listener.
    Adding an already registered listener has no effect.
    :param callable listener: The function or method to register.
    """
    if listener not in self._listeners:
        self._listeners.append(listener)
    else:
        _logger.warning('Ignoring addition of an already registered listener')