Did I find the right examples for you? yes no

All Samples(12)  |  Call(6)  |  Derive(0)  |  Import(6)

src/p/r/Products.ZCTextIndex-2.13.5/src/Products/ZCTextIndex/QueryParser.py   Products.ZCTextIndex(Download)
            return L[0]
        else:
            return ParseTree.OrNode(L)
 
    def _parseAndExpr(self):

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
            final_terms.append([parseQuery('"%s"' % i) for i in t_list])
 
        final_gloss_query = [(len(i) > 1 and OrNode(i)) or i[0]
                             for i in final_terms if len(i)]
        term_count = len(final_gloss_query)

src/p/r/Products.ZCTextIndex-2.13.5/src/Products/ZCTextIndex/tests/testQueryParser.py   Products.ZCTextIndex(Download)
        from Products.ZCTextIndex.ParseTree import GlobNode
        from Products.ZCTextIndex.ParseTree import NotNode
        from Products.ZCTextIndex.ParseTree import OrNode
        from Products.ZCTextIndex.ParseTree import ParseTreeNode
        from Products.ZCTextIndex.ParseTree import PhraseNode
    def test004(self):
        from Products.ZCTextIndex.ParseTree import AtomNode
        from Products.ZCTextIndex.ParseTree import OrNode
        self.expect("aa OR bb or cc",
                    OrNode([AtomNode("aa"), AtomNode("bb"), AtomNode("cc")]))
 
    def test005(self):
        from Products.ZCTextIndex.ParseTree import AndNode
        from Products.ZCTextIndex.ParseTree import AtomNode
        from Products.ZCTextIndex.ParseTree import OrNode
        from Products.ZCTextIndex.ParseTree import OrNode
        self.expect("aa AND bb OR cc AnD dd",
                    OrNode([AndNode([AtomNode("aa"), AtomNode("bb")]),
                            AndNode([AtomNode("cc"), AtomNode("dd")])]))
 

src/p/r/Products.ZCTextIndex-2.13.5/src/Products/ZCTextIndex/tests/testParseTree.py   Products.ZCTextIndex(Download)
    def test_OrNode_conforms_to_IQueryParseTree(self):
        from Products.ZCTextIndex.ParseTree import OrNode
        self._conforms(OrNode)
 
    def test_AndNode_conforms_to_IQueryParseTree(self):