Did I find the right examples for you? yes no

All Samples(77)  |  Call(48)  |  Derive(0)  |  Import(29)

src/p/r/Products.ZCTextIndex-2.13.5/src/Products/ZCTextIndex/QueryParser.py   Products.ZCTextIndex(Download)
            tree = ParseTree.GlobNode(words[0])
        else:
            tree = ParseTree.AtomNode(words[0])
        if term[0] == "-":
            tree = ParseTree.NotNode(tree)

src/p/r/Products.PloneGlossary-1.7/Products/PloneGlossary/patches.py   Products.PloneGlossary(Download)
from Products.PluginIndexes.common.util import parseIndexRequest
from Products.ZCTextIndex.QueryParser import QueryParser
from Products.ZCTextIndex.ParseTree import OrNode, AndNode, AtomNode
 
from Products.PloneGlossary.utils import LOG

src/p/r/Products.ZCTextIndex-2.13.5/src/Products/ZCTextIndex/tests/testQueryParser.py   Products.ZCTextIndex(Download)
    def compareParseTrees(self, got, expected, msg=None):
        from Products.ZCTextIndex.ParseTree import AndNode
        from Products.ZCTextIndex.ParseTree import AtomNode
        from Products.ZCTextIndex.ParseTree import GlobNode
        from Products.ZCTextIndex.ParseTree import NotNode
    def test001(self):
        from Products.ZCTextIndex.ParseTree import AtomNode
        self.expect("foo", AtomNode("foo"))
 
    def test002(self):
        from Products.ZCTextIndex.ParseTree import AtomNode
        self.expect("note", AtomNode("note"))

src/p/r/Products.ZCTextIndex-2.13.5/src/Products/ZCTextIndex/tests/testQueryEngine.py   Products.ZCTextIndex(Download)
    def testInvalidQuery(self):
        from Products.ZCTextIndex.ParseTree import NotNode, AtomNode
        tree = NotNode(AtomNode("foo"))
        self.assertRaises(QueryError, tree.executeQuery, self.index)
 

src/p/r/Products.ZCTextIndex-2.13.5/src/Products/ZCTextIndex/tests/testParseTree.py   Products.ZCTextIndex(Download)
    def test_AtomNode_conforms_to_IQueryParseTree(self):
        from Products.ZCTextIndex.ParseTree import AtomNode
        self._conforms(AtomNode)
 
    def test_PhraseNode_conforms_to_IQueryParseTree(self):