Ejemplo n.º 1
0
 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()
Ejemplo n.º 2
0
 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()
Ejemplo n.º 3
0
def test_info():
    info()
    do_sync()
    info()
    for _ in range(24):
        do_sync()
    info()
Ejemplo n.º 4
0
 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()
Ejemplo n.º 5
0
 def handle(self, *args, **options):
     info()