def __init__(self, handler, predicate):
        """\
        Creates the `CableIdFilter` handler.

        `handler`
            The `ICableHandler` which should receive the events.
        `predicate`
            A function which accepts a canonical cable identifier and
            returns either ``True`` or ``False``. If the predicate returns
            ``True``, the `handler` receives all events for the current
            cable.
        """
        super(CableIdFilter, self).__init__(handler)
        self._predicate = predicate
        self._accept = False
def __init__ ( self , handler , predicate ) : super ( CableIdFilter , self ) . __init__ ( handler ) self . _predicate = predicate self . _accept = False
\
        Creates the `CableIdFilter` handler.

        `handler`
            The `ICableHandler` which should receive the events.
        `predicate`
            A function which accepts a canonical cable identifier and
            returns either ``True`` or ``False``. If the predicate returns
            ``True``, the `handler` receives all events for the current
            cable.