dax/dax_tools_utils.py
def send_warning_emails(warnings, emailaddress):
    """
    Send warning emails about the dax_upload queue

    :param warnings: list of warnings
    :param emailaddress: email address
    :return: None
    """
    if warnings and emailaddress:
        content = WARNING_START_CONTENT
        for warning in warnings:
            content += ' - %s\n' % (warning)
        content += WARNING_END_CONTENT
        if SMTP_FROM and SMTP_PASS and SMTP_HOST:
            send_email(SMTP_FROM, SMTP_PASS, emailaddress.split(','),
                       WARNING_SUBJECT, content, SMTP_HOST)

    Send warning emails about the dax_upload queue

    :param warnings: list of warnings
    :param emailaddress: email address
    :return: None
    
Send warning emails about the dax_upload queue
Send warning emails about the dax_upload queue
def send_warning_emails(warnings, emailaddress):
    if warnings and emailaddress:
        content = WARNING_START_CONTENT
        for warning in warnings:
            content += ' - %s\n' % (warning)
        content += WARNING_END_CONTENT
        if SMTP_FROM and SMTP_PASS and SMTP_HOST:
            send_email(SMTP_FROM, SMTP_PASS, emailaddress.split(','),
                       WARNING_SUBJECT, content, SMTP_HOST)
def send_warning_emails ( warnings , emailaddress ) : if warnings and emailaddress : content = WARNING_START_CONTENT for warning in warnings : content += ' - %s\n' % ( warning ) content += WARNING_END_CONTENT if SMTP_FROM and SMTP_PASS and SMTP_HOST : send_email ( SMTP_FROM , SMTP_PASS , emailaddress . split ( ',' ) , WARNING_SUBJECT , content , SMTP_HOST )
Send warning emails about the dax_upload queue
Send warning emails about the dax_upload queue
"""
    Send warning emails about the dax_upload queue

    :param warnings: list of warnings
    :param emailaddress: email address
    :return: None
    """
None
warnings
list of warnings
list of warnings
emailaddress
None