Exemplo n.º 1
0
def print_debug_message(sender, **kwargs):

    text = kwargs.get('text')
    if get_verbosity() and settings.DEBUG and text:
        print_nocr(text)
Exemplo n.º 2
0
def print_info_message(sender=None, **kwargs):

    text = kwargs.get('text')
    if get_verbosity():
        print_nocr(text)
Exemplo n.º 3
0
def print_warning_message(**kwargs):
    """ Receiver to print a warning message in yellow text
    """
    text = kwargs.get('text')
    if get_verbosity():
        print(Style.BRIGHT + Fore.YELLOW + text)
Exemplo n.º 4
0
def print_debug_message(**kwargs):
    """ Receiver to print a debug message in blue, if verbose and DEBUG are set
    """
    text = kwargs.get('text')
    if get_verbosity() and settings.DEBUG and text:
        print(Style.BRIGHT + Fore.BLUE + text)
Exemplo n.º 5
0
def print_info_message(sender=None, **kwargs):
    """ Receiver to print an info message, no color
    """
    text = kwargs.get('text')
    if get_verbosity():
        print(Style.RESET_ALL + Fore.RESET + text)