def list(self, arg, opts):
        mtinterceptors = pickle.loads(self.pb['router'].perspective_mtinterceptor_get_all())
        counter = 0

        if (len(mtinterceptors)) > 0:
            self.protocol.sendData("#%s %s %s %s" % (
                'Order'.ljust(5),
                'Type'.ljust(20),
                'Script'.ljust(47),
                'Filter(s)'.ljust(64),
                ), prompt=False)

            for e in mtinterceptors:
                order = e.keys()[0]
                mtinterceptor = e[order]
                counter += 1

                filters = ''
                # Prepare display for filters
                for _filter in mtinterceptor.filters:
                    if filters != '':
                        filters += ', '
                    filters += repr(_filter)

                self.protocol.sendData("#%s %s %s %s" % (
                    str(order).ljust(5),
                    str(mtinterceptor.__class__.__name__).ljust(20),
                    repr(mtinterceptor.script).ljust(47),
                    filters.ljust(64),
                    ), prompt=False)
                self.protocol.sendData(prompt=False)

        self.protocol.sendData('Total MT Interceptors: %s' % counter)
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/cli/mtinterceptorm.py/MtInterceptorManager.list/original