예제 #1
0
def execute_proxy(operations):
    report = Report()
    resources = {}
    resources["report"] = report
    for what, kwargs in operations:
        what(resources=resources, **kwargs)
    print report.format_tree()
    return report
예제 #2
0
def execute_proxy(operations):
    report = Report()
    resources = {}
    resources['report'] = report
    for what, kwargs in operations:
        what(resources=resources, **kwargs)
    print(report.format_tree())
    return report