def findNodeJustBefore(target, nodes):
    while target is not None:
        node = target.previousSibling
        while node is not None:
            if node in nodes:
                return node
            node = node.previousSibling
        target = target.parentNode
    raise RuntimeError("Oops")
Return a CGI handler. This is mostly useful with Google App Engine.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/lore/tree.py/findNodeJustBefore--crossover with--dataset/ETHPy150Open joxeankoret/nightmare/runtime/web/application.py/application.cgirun