예제 #1
0
 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')
예제 #2
0
 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')
예제 #3
0
    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")
예제 #4
0
파일: pdadmin.py 프로젝트: deezeesms/dd-git
    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')