def handle(self, *args, **options): if options.get('config', False): hide = ['conf', 'IDLE', 'STOPPING', 'STARTING', 'WORKING', 'SIGNAL_NAMES', 'STOPPED'] settings = [a for a in dir(Conf) if not a.startswith('__') and a not in hide] self.stdout.write('VERSION: {}'.format('.'.join(str(v) for v in VERSION))) for setting in settings: value = getattr(Conf, setting) if value is not None: self.stdout.write('{}: {}'.format(setting, value)) else: info()
def handle(self, *args, **options): if options.get('ids', True): get_ids() elif options.get('config', False): hide = ['conf', 'IDLE', 'STOPPING', 'STARTING', 'WORKING', 'SIGNAL_NAMES', 'STOPPED'] settings = [a for a in dir(Conf) if not a.startswith('__') and a not in hide] self.stdout.write('VERSION: {}'.format('.'.join(str(v) for v in VERSION))) for setting in settings: value = getattr(Conf, setting) if value is not None: self.stdout.write('{}: {}'.format(setting, value)) else: info()
def test_info(): info() do_sync() info() for _ in range(24): do_sync() info()
def handle(self, *args, **options): if options.get("ids", True): get_ids() elif options.get("config", False): hide = [ "conf", "IDLE", "STOPPING", "STARTING", "WORKING", "SIGNAL_NAMES", "STOPPED", ] settings = [ a for a in dir(Conf) if not a.startswith("__") and a not in hide ] self.stdout.write(f"VERSION: {'.'.join(str(v) for v in VERSION)}") for setting in settings: value = getattr(Conf, setting) if value is not None: self.stdout.write(f"{setting}: {value}") else: info()
def handle(self, *args, **options): info()