Did I find the right examples for you? yes no

All Samples(16)  |  Call(8)  |  Derive(0)  |  Import(8)

src/p/r/Products.ZCTextIndex-2.13.5/src/Products/ZCTextIndex/QueryParser.py   Products.ZCTextIndex(Download)
            if t is None:
                return None # Only stopwords
            return ParseTree.NotNode(t)
        else:
            return self._parseTerm()
            tree = ParseTree.AtomNode(words[0])
        if term[0] == "-":
            tree = ParseTree.NotNode(tree)
        return tree
 

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 test007(self):
        from Products.ZCTextIndex.ParseTree import AndNode
        from Products.ZCTextIndex.ParseTree import AtomNode
        from Products.ZCTextIndex.ParseTree import NotNode
        self.expect("aa AND NOT bb",
                    AndNode([AtomNode("aa"), NotNode(AtomNode("bb"))]))
    def test015(self):
        from Products.ZCTextIndex.ParseTree import AndNode
        from Products.ZCTextIndex.ParseTree import AtomNode
        from Products.ZCTextIndex.ParseTree import NotNode
        self.expect("foo -bar", AndNode([AtomNode("foo"),
                                         NotNode(AtomNode("bar"))]))

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_NotNode_conforms_to_IQueryParseTree(self):
        from Products.ZCTextIndex.ParseTree import NotNode
        self._conforms(NotNode)
 
    def test_GlobNode_conforms_to_IQueryParseTree(self):