def __init__(self, actor, reporter, debugger=None): if isinstance(actor, str): actor = codeloader.construct(actor, call_by_default=True) self.actor = actor self.reporter = reporter if isinstance(debugger, str): debugger = codeloader.construct(debugger, call_by_default=True) self.debugger = debugger self.log = log
def build(specs): """Import, construct and aggregate requested reporters.""" reporters = [] for spec in specs: reporters.append( codeloader.construct(spec, default_module=__name__, call_by_default=True)) return ReporterHerd(reporters=reporters)
def build(specs): """Import, construct and aggregate requested reporters.""" reporters = [] for spec in specs: reporters.append( codeloader.construct( spec, default_module=__name__, call_by_default=True)) return ReporterHerd(reporters=reporters)
def build(specs): """Import, construct and aggregate requested reporters.""" planners = [] for spec in specs: planners.append( codeloader.construct(spec, default_module=__name__, call_by_default=True)) if len(planners) == 1: return planners[0] else: return MasterPlan(planners)
def build(specs): """Import, construct and aggregate requested reporters.""" planners = [] for spec in specs: planners.append( codeloader.construct( spec, default_module=__name__, call_by_default=True)) if len(planners) == 1: return planners[0] else: return MasterPlan(planners)
def build(spec): return codeloader.construct(spec, default_module=__name__, call_by_default=True)
def build(spec): return codeloader.construct( spec, default_module=__name__, call_by_default=True)