kolibri/utils/cli.py
def status():
    """
    Check the server's status. For possible statuses, see the status dictionary
    status.codes

    Status *always* outputs the current status in the first line of stderr.
    The following lines contain optional information such as the addresses where
    the server is listening.

    TODO: We can't guarantee the above behavior because of the django stack
    being loaded regardless

    :returns: status_code, key has description in status.codes
    """
    status_code, urls = server.get_urls()

    if status_code == server.STATUS_RUNNING:
        sys.stderr.write("{msg:s} (0)\n".format(msg=status.codes[0]))
        if urls:
            sys.stderr.write("Kolibri running on:\n\n")
            for addr in urls:
                sys.stderr.write("\t{}\n".format(addr))
        return server.STATUS_RUNNING
    else:
        verbose_status = status.codes[status_code]
        sys.stderr.write(
            "{msg:s} ({code:d})\n".format(code=status_code, msg=verbose_status)
        )
        return status_code

    Check the server's status. For possible statuses, see the status dictionary
    status.codes

    Status *always* outputs the current status in the first line of stderr.
    The following lines contain optional information such as the addresses where
    the server is listening.

    TODO: We can't guarantee the above behavior because of the django stack
    being loaded regardless

    :returns: status_code, key has description in status.codes
    
Check the server's status. For possible statuses, see the status dictionary
status.codes

Status *always* outputs the current status in the first line of stderr.
The following lines contain optional information such as the addresses where
the server is listening.

We can't guarantee the above behavior because of the django stack
being loaded regardless
Check the server ' s status . For possible statuses see the status dictionary status . codes Status * always * outputs the current status in the first line of stderr . The following lines contain optional information such as the addresses where the server is listening . We can ' t guarantee the above behavior because of the django stack being loaded regardless
def status():
    status_code, urls = server.get_urls()
    if status_code == server.STATUS_RUNNING:
        sys.stderr.write("{msg:s} (0)\n".format(msg=status.codes[0]))
        if urls:
            sys.stderr.write("Kolibri running on:\n\n")
            for addr in urls:
                sys.stderr.write("\t{}\n".format(addr))
        return server.STATUS_RUNNING
    else:
        verbose_status = status.codes[status_code]
        sys.stderr.write(
            "{msg:s} ({code:d})\n".format(code=status_code, msg=verbose_status)
        )
        return status_code
def status ( ) : status_code , urls = server . get_urls ( ) if status_code == server . STATUS_RUNNING : sys . stderr . write ( "{msg:s} (0)\n" . format ( msg = status . codes [ 0 ] ) ) if urls : sys . stderr . write ( "Kolibri running on:\n\n" ) for addr in urls : sys . stderr . write ( "\t{}\n" . format ( addr ) ) return server . STATUS_RUNNING else : verbose_status = status . codes [ status_code ] sys . stderr . write ( "{msg:s} ({code:d})\n" . format ( code = status_code , msg = verbose_status ) ) return status_code
Check the server's status.
Check the server ' s status .
"""
    Check the server's status. For possible statuses, see the status dictionary
    status.codes

    Status *always* outputs the current status in the first line of stderr.
    The following lines contain optional information such as the addresses where
    the server is listening.

    TODO: We can't guarantee the above behavior because of the django stack
    being loaded regardless

    :returns: status_code, key has description in status.codes
    """
status_code, key has description in status.codes
status_code key has description in status . codes