Beispiel #1
0
def main(args, app):
    for report in Report.FromConfig(app.config):
        if args.report == report.name:
            report.remove(app.config)
            app.config.save()
            print('removed', report.format_url())
            break
Beispiel #2
0
def get_report_map(conf):
    reports = {}
    for report in Report.FromConfig(conf):
        reports[report.name] = report
    return reports
Beispiel #3
0
def get_devices(conf):
    return Report.FromConfig(conf)
Beispiel #4
0
def get_report_names(conf):
    return [report.name for report in Report.FromConfig(conf)]