(self, id=None)
Returns an iterator of ``("fieldname", "termtext")`` tuples for the
        **currently matching** term matchers in this tree.
Returns an iterator of ``("fieldname", "termtext")`` tuples for the
        **currently matching** term matchers in this tree.
Returns an iterator of ( fieldname termtext ) tuples for the ** currently matching ** term matchers in this tree .
def matching_terms(self, id=None):
        """Returns an iterator of ``("fieldname", "termtext")`` tuples for the
        **currently matching** term matchers in this tree.
        """

        if not self.is_active():
            return

        if id is None:
            id = self.id()
        elif id != self.id():
            return

        t = self.term()
        if t is None:
            for c in self.children():
                for t in c.matching_terms(id):
                    yield t
        else:
            yield t
def matching_terms ( self , id = None ) : if not self . is_active ( ) : return if id is None : id = self . id ( ) elif id != self . id ( ) : return t = self . term ( ) if t is None : for c in self . children ( ) : for t in c . matching_terms ( id ) : yield t else : yield t