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

All Samples(74)  |  Call(40)  |  Derive(0)  |  Import(34)

src/p/r/Products.LinguaPlone-4.1.3/Products/LinguaPlone/LanguageIndex.py   Products.LinguaPlone(Download)
from BTrees.IIBTree import IISet
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
    def _insert(self, entry):
        if entry.main not in self._index:
            self._index[entry.main] = OOBTree()
        if entry.sub not in self._index[entry.main]:
            self._index[entry.main][entry.sub] = OOTreeSet()

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
 

src/p/r/Products.LinguaPlone-HEAD/Products/LinguaPlone/LanguageIndex.py   Products.LinguaPlone(Download)
from BTrees.IIBTree import IISet
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
    def _insert(self, entry):
        if entry.main not in self._index:
            self._index[entry.main] = OOBTree()
        if entry.sub not in self._index[entry.main]:
            self._index[entry.main][entry.sub] = OOTreeSet()

src/i/n/indico-HEAD/indico/MaKaC/plugins/InstantMessaging/indexes.py   indico(Download)
 
from MaKaC.common.Counter import Counter
from BTrees.OOBTree import OOBTree, OOTreeSet
from MaKaC.services.interface.rpc.common import ServiceError, NoReportError
from persistent import Persistent
        # self.get is equivalent to root['indexByConf']
        if not self.get().has_key(conf):
            self.get()[conf] = OOTreeSet()
 
        self.get()[conf].insert(element)
                    raise NoReportError( _('There is already a chat room in that server with that name, please choose another one'))
        else:
            self.get()[element.getTitle()] = OOTreeSet()
 
        self.get()[element.getTitle()].insert(element)

src/g/o/gocept.objectquery-0.1b1/src/gocept/objectquery/indexsupport.py   gocept.objectquery(Download)
import gocept.objectquery.interfaces
import persistent
from BTrees.OOBTree import OOBTree, OOTreeSet
from sw.objectinspection import IAttributesInspector, IChildrenInspector
 
    def insert(self, key, value):
        "Insert value under key."
        if not self._index.has_key(key):
            self._index[key] = OOTreeSet()
        self._index[key].insert(value)
            new_paths.append(parent_path + (child_id,))
        if not self.paths.has_key(child_id):
            self.paths[child_id] = OOTreeSet()
        for path in new_paths:
            self.paths[child_id].insert(path)

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
            self.linkedTo.setdefault(field, {})
            for role in data['roles']:
                self.linkedTo[field].setdefault(role, OOTreeSet())
 
    def linkTo(self, obj, role):

src/z/c/zc.extrinsicreference-0.3.0/src/zc/extrinsicreference/__init__.py   zc.extrinsicreference(Download)
    def add(self, obj, value):
        key = zope.app.keyreference.interfaces.IKeyReference(obj)
        refs = self.references.get(key)
        if refs is None:
            refs = self.references[key] = BTrees.OOBTree.OOTreeSet()
    def update(self, obj, values):
        key = zope.app.keyreference.interfaces.IKeyReference(obj)
        refs = self.references.get(key)
        if refs is None:
            refs = self.references[key] = BTrees.OOBTree.OOTreeSet()
        else:
            if refs is None:
                refs = self.references[key] = BTrees.OOBTree.OOTreeSet()
            else:
                refs.clear()

src/z/o/zope.locking-1.2.2/src/zope/locking/utility.py   zope.locking(Download)
import persistent
import persistent.interfaces
 
from BTrees.OOBTree import OOBTree, OOTreeSet
from zope import interface, component, event
    def _add(self, tree, token, value):
        """add a token for a value within either of the two index trees"""
        reg = tree.get(value)
        if reg is None:
            reg = tree[value] = OOTreeSet()

src/p/l/plonesocial.network-0.6.1/plonesocial/network/graph.py   plonesocial.network(Download)
        assert(other == str(other))
        # insert user if not exists
        self._following.insert(actor, OOBTree.OOTreeSet())
        self._followers.insert(other, OOBTree.OOTreeSet())
        # add follow subscription

src/a/n/anthill.querytool-0.2/anthill/querytool/SearchOperators.py   anthill.querytool(Download)
from BTrees.OOBTree import OOBTree, OOTreeSet 
from BTrees.OOBTree import intersection as OOBTreeIntersection
 
from BTrees.IIBTree import IITreeSet, intersection
 

Previous  1 | 2 | 3 | 4  Next