src/dirbs/cli/listgen.py
def cli(ctx, config, statsd, logger, run_id, conn, metadata_conn, command, metrics_root, metrics_run_root,
        curr_date, no_full_lists, no_cleanup, base, disable_sanity_checks, output_dir, conditions):
    """DIRBS script to output CSV lists (blacklist, exception, notification) for the current classification state."""
    if curr_date is not None:
        logger.warning('*************************************************************************')
        logger.warning('WARNING: --curr-date option passed to dirbs-listgen')
        logger.warning('*************************************************************************')
        logger.warning('')
        logger.warning('This should not be done in a production DIRBS deployment for the following reasons:')
        logger.warning('')
        logger.warning('1. Current date determines which of the blacklist or the notifications list a classified')
        logger.warning('   IMEI ends up on. If --curr-date is set to a date in the future, it is possible that ')
        logger.warning('   classified IMEIs might erroneously end up on the blacklist before their grace period has')
        logger.warning('   expired. If set to the past, blacklisted IMEIs will potentially be considered to be')
        logger.warning('   in their grace period again and be re-notified.')
        logger.warning('2. Because changing the current date can affect whether IMEIs are on the blacklist vs.')
        logger.warning('   the notifications lists, this can produce large, invalid delta files in the lists.')
        logger.warning('')

    list_generator = ListsGenerator(config=config, logger=logger, run_id=run_id, conn=conn,
                                    metadata_conn=metadata_conn, curr_date=curr_date, no_full_lists=no_full_lists,
                                    no_cleanup=no_cleanup, base_run_id=base, conditions=conditions,
                                    disable_sanity_checks=disable_sanity_checks, output_dir=output_dir)
    list_generator.generate_lists()
DIRBS script to output CSV lists (blacklist, exception, notification) for the current classification state.
DIRBS script to output CSV lists (blacklist, exception, notification) for the current classification state.
DIRBS script to output CSV lists ( blacklist exception notification ) for the current classification state .
def cli(ctx, config, statsd, logger, run_id, conn, metadata_conn, command, metrics_root, metrics_run_root,
        curr_date, no_full_lists, no_cleanup, base, disable_sanity_checks, output_dir, conditions):
    if curr_date is not None:
        logger.warning('*************************************************************************')
        logger.warning('WARNING: --curr-date option passed to dirbs-listgen')
        logger.warning('*************************************************************************')
        logger.warning('')
        logger.warning('This should not be done in a production DIRBS deployment for the following reasons:')
        logger.warning('')
        logger.warning('1. Current date determines which of the blacklist or the notifications list a classified')
        logger.warning('   IMEI ends up on. If --curr-date is set to a date in the future, it is possible that ')
        logger.warning('   classified IMEIs might erroneously end up on the blacklist before their grace period has')
        logger.warning('   expired. If set to the past, blacklisted IMEIs will potentially be considered to be')
        logger.warning('   in their grace period again and be re-notified.')
        logger.warning('2. Because changing the current date can affect whether IMEIs are on the blacklist vs.')
        logger.warning('   the notifications lists, this can produce large, invalid delta files in the lists.')
        logger.warning('')
    list_generator = ListsGenerator(config=config, logger=logger, run_id=run_id, conn=conn,
                                    metadata_conn=metadata_conn, curr_date=curr_date, no_full_lists=no_full_lists,
                                    no_cleanup=no_cleanup, base_run_id=base, conditions=conditions,
                                    disable_sanity_checks=disable_sanity_checks, output_dir=output_dir)
    list_generator.generate_lists()
def cli ( ctx , config , statsd , logger , run_id , conn , metadata_conn , command , metrics_root , metrics_run_root , curr_date , no_full_lists , no_cleanup , base , disable_sanity_checks , output_dir , conditions ) : if curr_date is not None : logger . warning ( '*************************************************************************' ) logger . warning ( 'WARNING: --curr-date option passed to dirbs-listgen' ) logger . warning ( '*************************************************************************' ) logger . warning ( '' ) logger . warning ( 'This should not be done in a production DIRBS deployment for the following reasons:' ) logger . warning ( '' ) logger . warning ( '1. Current date determines which of the blacklist or the notifications list a classified' ) logger . warning ( '   IMEI ends up on. If --curr-date is set to a date in the future, it is possible that ' ) logger . warning ( '   classified IMEIs might erroneously end up on the blacklist before their grace period has' ) logger . warning ( '   expired. If set to the past, blacklisted IMEIs will potentially be considered to be' ) logger . warning ( '   in their grace period again and be re-notified.' ) logger . warning ( '2. Because changing the current date can affect whether IMEIs are on the blacklist vs.' ) logger . warning ( '   the notifications lists, this can produce large, invalid delta files in the lists.' ) logger . warning ( '' ) list_generator = ListsGenerator ( config = config , logger = logger , run_id = run_id , conn = conn , metadata_conn = metadata_conn , curr_date = curr_date , no_full_lists = no_full_lists , no_cleanup = no_cleanup , base_run_id = base , conditions = conditions , disable_sanity_checks = disable_sanity_checks , output_dir = output_dir ) list_generator . generate_lists ( )
DIRBS script to output CSV lists (blacklist, exception, notification) for the current classification state.
DIRBS script to output CSV lists ( blacklist exception notification ) for the current classification state .
"""DIRBS script to output CSV lists (blacklist, exception, notification) for the current classification state."""
ctx
config
statsd
logger
run_id
conn
metadata_conn
command
metrics_root
metrics_run_root
curr_date
no_full_lists
no_cleanup
base
disable_sanity_checks
output_dir
conditions