コード例 #1
0
ファイル: receivers.py プロジェクト: DylanGraham/patchman
def print_debug_message(sender, **kwargs):

    text = kwargs.get('text')
    if get_verbosity() and settings.DEBUG and text:
        print_nocr(text)
コード例 #2
0
ファイル: receivers.py プロジェクト: DylanGraham/patchman
def print_info_message(sender=None, **kwargs):

    text = kwargs.get('text')
    if get_verbosity():
        print_nocr(text)
コード例 #3
0
ファイル: receivers.py プロジェクト: quixoten/patchman
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)
コード例 #4
0
ファイル: receivers.py プロジェクト: quixoten/patchman
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)
コード例 #5
0
ファイル: receivers.py プロジェクト: quixoten/patchman
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)