def find(tools): discoverers = service_loader.global_lookup[Discoverer] for discoverer in discoverers: is_applicable = webseal_wiring.wired()(discoverer.is_applicable) if Sfn(is_applicable)(**tools): return discoverer.create(**tools) raise flow.DiscoveryException('No webseal discoverer found')
def find(tools): impls = service_loader.global_lookup[Cmd] for impl in impls: is_applicable = webseal_wiring.wired()(impl.is_applicable) if Sfn(is_applicable)(**tools): return impl.create(**tools) raise service_loader.NoImplementationException("No pdadmin impl found")
def find(tools): impls = service_loader.global_lookup[Cmd] for impl in impls: is_applicable = webseal_wiring.wired()(impl.is_applicable) if Sfn(is_applicable)(**tools): return impl.create(**tools) raise service_loader.NoImplementationException('No pdadmin impl found')