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

All Samples(23)  |  Call(12)  |  Derive(0)  |  Import(11)
union(o1, o2) -- compute the union of o1 and o2

src/i/n/indico-HEAD/indico/MaKaC/review.py   indico(Download)
from persistent import Persistent
from persistent.list import PersistentList
from BTrees.OOBTree import OOBTree, intersection, union
from BTrees.IOBTree import IOBTree
import BTrees.OIBTree as OIBTree
        The result would be 2 (out of 3)
        """
        tmp1 = union( self.getTrackAcceptances(), self.getTrackRejections() )
        judgements = union( tmp1, self.getTrackReallocations() )
        return len( intersection( self._tracks, judgements ) )

src/p/r/Products.LinguaPlone-4.1.3/Products/LinguaPlone/LanguageIndex.py   Products.LinguaPlone(Download)
from BTrees.IIBTree import union as ii_union
from BTrees.OOBTree import OOBTree, OOSet, OOTreeSet
from BTrees.OOBTree import union as oo_union
from BTrees.Length import Length
from OFS.SimpleItem import SimpleItem
 
        for sublanguage in subs:
            result = oo_union(result, self._index[main][sublanguage])
 
        return IISet(entry.docid for entry in result)

src/p/r/Products.LinguaPlone-HEAD/Products/LinguaPlone/LanguageIndex.py   Products.LinguaPlone(Download)
from BTrees.IIBTree import union as ii_union
from BTrees.OOBTree import OOBTree, OOSet, OOTreeSet
from BTrees.OOBTree import union as oo_union
from BTrees.Length import Length
from OFS.SimpleItem import SimpleItem
 
        for sublanguage in subs:
            result = oo_union(result, self._index[main][sublanguage])
 
        return IISet(entry.docid for entry in result)

src/p/r/Products.ZCatalog-3.0.2/src/Products/PluginIndexes/common/ResultList.py   Products.ZCatalog(Download)
from BTrees.IIBTree import weightedUnion
from BTrees.OOBTree import OOSet
from BTrees.OOBTree import union
 
 
    def __and__(self, x):
        return self.__class__(
            weightedIntersection(self._dict, x._dict),
            union(self._words, x._words),
            self._index,
    def __or__(self, x):
        return self.__class__(
            weightedUnion(self._dict, x._dict),
            union(self._words, x._words),
            self._index,
 
        return self.__class__(
            result, union(self._words, x._words), self._index)
 

src/i/n/indico-HEAD/indico/MaKaC/user.py   indico(Download)
from collections import OrderedDict
import operator
from BTrees.OOBTree import OOTreeSet, union
 
from persistent import Persistent
    def getRelatedCategories(self):
        favorites = self.getLinkTo('category', 'favorite')
        managed = self.getLinkTo('category', 'manager')
        res = {}
        for categ in union(favorites, managed):
    def getSuggestedCategories(self):
        if not redis_write_client:
            return []
        related = union(self.getLinkTo('category', 'favorite'), self.getLinkTo('category', 'manager'))
        res = []

src/e/x/experimental.catalogqueryplan-3.2.8/experimental/catalogqueryplan/languageindex.py   experimental.catalogqueryplan(Download)
from BTrees.IIBTree import IISet
from BTrees.IIBTree import union as ii_union
from BTrees.OOBTree import OOSet
from BTrees.OOBTree import union as oo_union
from Products.PluginIndexes.common.util import parseIndexRequest
    result = OOSet()
    for sublanguage in subs:
        result = oo_union(result, self._index[main][sublanguage])
 
    return IISet(entry.docid for entry in result)

src/p/r/Products.ManagableIndex-2.1.5/Products/ManagableIndex/KeywordIndex.py   Products.ManagableIndex(Download)
from sys import maxint
 
from BTrees.OOBTree import difference, OOSet, union, OOTreeSet
from Products.PluginIndexes.interfaces import IUniqueValueIndex
 
      sv= self._standardizeValue(v,object)
      if not sv: continue
      set= union(set,sv)
    return set
 

src/i/n/indico-HEAD/indico/core/index/base.py   indico(Download)
 
from BTrees.IOBTree import IOBTree, IOTreeSet
from BTrees.OOBTree import OOBTree, OOTreeSet, OOSet, union
from persistent import Persistent
 

src/b/t/BTrees-4.0.8/BTrees/tests/test_OOBTree.py   BTrees(Download)
    def union(self, *args):
        from BTrees.OOBTree import union
        return union(*args)
 
    def intersection(self, *args):

src/e/x/experimental.catalogqueryplan-3.2.8/experimental/catalogqueryplan/tests/test_plan.py   experimental.catalogqueryplan(Download)
class TestPureOO(SetResult):
    from BTrees.OOBTree import union
    def intersection(self, o1, o2):
        return oointersection(o1, o2)
    def difference(self, o1, o2):

  1 | 2  Next