Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/z/c/zc.relation-1.0/src/zc/relation/catalog.py   zc.relation(Download)
        else:
            if not isinstance(query, BTrees.family32.OO.Bucket):
                query = BTrees.family32.OO.Bucket(query)
            return self._relData(query)
 
        if data is None:
            raise ValueError('name not indexed', name)
        query = BTrees.family32.OO.Bucket(query) # sorts on key
        getQueries = None
        if queryFactory is None:
            queryFactory, getQueries = self._getQueryFactory(
                query, queryFactory)
        targetQuery = BTrees.family32.OO.Bucket(targetQuery)
    def findRelationTokens(self, query=(), maxDepth=None, filter=None,
                           targetQuery=(), targetFilter=None,
                           queryFactory=None, ignoreSearchIndex=False):
        query = BTrees.family32.OO.Bucket(query) # sorts on key
        getQueries = None
        if queryFactory is None:
            queryFactory, getQueries = self._getQueryFactory(
                query, queryFactory)
        targetQuery = BTrees.family32.OO.Bucket(targetQuery)

src/z/c/zc.relation-1.0/src/zc/relation/searchindex.py   zc.relation(Download)
    def __init__(self, forward, reverse, names=(), static=()):
        # normalize
        self.names = BTrees.family32.OO.Bucket([(nm, None) for nm in names])
        self.forward = forward
        self.reverse = reverse
    def copy(self, catalog):
        new = self.__class__.__new__(self.__class__)
        new.names = BTrees.family32.OO.Bucket()
        for nm, val in self.names.items():
            if val is not None:
        tokens = set()
        reverseQuery = BTrees.family32.OO.Bucket(
            ((self.reverse, None),) + self.factory.static)
        for token in starts:
            getQueries = self.factory(dict(reverseQuery), self.catalog)
        relTools = self.catalog.getRelationModuleTools()
        query = BTrees.family32.OO.Bucket(
            ((self.forward, None),) + self.factory.static)
        getQueries = self.factory(query, self.catalog)
        for token in tokens:
        while 1:
            yield BTrees.family32.OO.Bucket(
                [(name, value) for name, value, iterator, src in vals])
            for s in vals:
                name, value, iterator, src = s

src/z/c/zc.relation-1.0/src/zc/relation/queryfactory.py   zc.relation(Download)
                        return
                    rels = zc.relation.catalog.Any(tokens)
                res = BTrees.family32.OO.Bucket(static)
                res[name] = rels
                yield res