Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def findchannel(root, channel, all=False):
    components = [x for x in flatten(root)
                  if x.channel == channel]

    if all:
        return components

    if components:
        return components[0]
        


src/c/i/circuits-3.0.0.dev/tests/core/test_utils.py   circuits(Download)
 
from circuits import Component
from circuits.core.utils import findchannel, findroot, findtype
 
FOO = """\
        app.flush()
 
    a = findchannel(app, "a")
 
    assert a.channel == "a"