def list(self, handler_type):
        """
        Return a list of handlers for a given ``handler_type``.

        :param handler_type: The type of handler (i.e. ``output``)
        :returns: List of handlers that match ``hander_type``.
        :rtype: ``list``
        :raises: :class:`cement.core.exc.FrameworkError`

        Usage:

        .. code-block:: python

            app.handler.list('log')

        """
        if handler_type not in self.__handlers__:
            raise exc.FrameworkError("handler type '%s' does not exist!" %
                                     handler_type)

        res = []
        for label in self.__handlers__[handler_type]:
            if label == '__interface__':
                continue
            res.append(self.__handlers__[handler_type][label])
        return res
dataset/ETHPy150Open datafolklabs/cement/cement/core/handler.py/HandlerManager.list/original