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/o/p/opennode-management-HEAD/opennode/oms/model/model/search.py   opennode-management(Download)
from __future__ import absolute_import
 
from BTrees.OOBTree import OOTreeSet, difference
from grokcore.component import context, subscribe, Adapter, baseclass
from twisted.python import log
        self.__parent__ = parent
        self.searcher = searcher
        self.other_tags = difference(other_tags, OOTreeSet([self.__name__]))
        self.tag_path = tag_path + [name]
 
    def _items(self):
        res = {}
        tag_set = OOTreeSet(self.tags)
        for i in self.tags:
            res[i] = Tag(i, self.__parent__, self, tag_set, [])

src/t/i/TikiDB-0.1.4/tikidb/TikiContainer.py   TikiDB(Download)
from persistent.mapping import PersistentMapping
from persistent.list import PersistentList
from persistent  import Persistent
from BTrees.IOBTree import IOBTree,IOTreeSet,IOSet
from BTrees.OOBTree import OOBTree,OOTreeSet,OOSet
    def __init__(self):
        self.data = IOBTree()
        self.uniqueFields = OOTreeSet()#tuple of key name or names that must
                                        #be unique for each record stored or
                                        #it will be considered the same record
 
        self.uniqueRecords = OOTreeSet()#tuple of values of the keys from
                                         #unique data set
 
        self.index_list = OOTreeSet() #string values of the names of indexes
                                      #that can be associated to data values
 
 
        """
        field_list = OOTreeSet(field_list)
        if len(self.uniqueFields) and  overrride:
            #unique fields have been updated and the uniqueRecords index

src/i/n/indico-HEAD/bin/migration/migrate.py   indico(Download)
import sys, traceback, argparse
import bcrypt
from BTrees.OOBTree import OOTreeSet, OOBTree
from BTrees.IOBTree import IOBTree
from dateutil import rrule
    for categ in CategoryManager()._getIdx().itervalues():
        categ.conferencesBackup = categ.conferences.values()
        categ.conferences = OOTreeSet(categ.conferences.itervalues())
        if len(categ.conferences) != len(categ.conferencesBackup):
            print "Problem migrating conf dict to tree set: %s" % categ.getId()

src/t/i/TikiDB-0.1.4/tikidb/TikiDB.py   TikiDB(Download)
from persistent.mapping import PersistentMapping
from persistent.list import PersistentList
from persistent  import Persistent
from BTrees.IOBTree import IOBTree,IOTreeSet,IOSet
from BTrees.OOBTree import OOBTree,OOTreeSet,OOSet
                self.root[index_name][v[index_field]].insert(k)
            else:
                 self.root[index_name][v[index_field]] = OOTreeSet([k])
        #add index to index listing
        index_data = {index_field:[index_name,index_container,index_description]}
    l = []
    pl = PersistentList()
    oobtreeset = OOTreeSet()
    ooset = OOSet()
    iobtreeset = IOTreeSet()

src/b/t/BTrees-4.0.8/BTrees/check.py   BTrees(Download)
from BTrees.OLBTree import OLBTree, OLBucket, OLSet, OLTreeSet
from BTrees.OLBTree import OLBTreePy, OLBucketPy, OLSetPy, OLTreeSetPy
from BTrees.OOBTree import OOBTree, OOBucket, OOSet, OOTreeSet
from BTrees.OOBTree import OOBTreePy, OOBucketPy, OOSetPy, OOTreeSetPy
 

src/z/o/zope.locking-1.2.2/src/zope/locking/generations.py   zope.locking(Download)
        # iterForPrincipalId only returns non-ended locks, so we know
        # they're still good.
        new_tree = BTrees.OOBTree.OOTreeSet(util.iterForPrincipalId(pid))
        if new_tree:
            util._principal_ids[pid] = new_tree
    for dt, tree in list(util._expirations.items()):
        if dt > now:
            util._expirations[dt] = BTrees.OOBTree.OOTreeSet(tree)
        else:
            del util._expirations[dt]

src/e/r/erp5-HEAD/product/CMFCategory/CategoryTool.py   erp5(Download)
"""
from collections import deque
from BTrees.OOBTree import OOTreeSet
from OFS.Folder import Folder
from Products.CMFCore.utils import UniqueObject
  def add(self, base, relative_url):
    try:
      getattr(self, base).add(relative_url)
    except AttributeError:
      setattr(self, base, OOTreeSet((relative_url,)))

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/i/n/indico-HEAD/indico/MaKaC/conference.py   indico(Download)
 
from persistent import Persistent
from BTrees.OOBTree import OOBTree, OOTreeSet, OOSet
from BTrees.OIBTree import OIBTree,OISet,union
import MaKaC
        self.subcategories = {}
        self.materials = {}
        self.conferences = OOTreeSet()
        self._numConferences = 0
        self.owner = None

src/d/m/dm.incrementalsearch-2.0/dm/incrementalsearch/__init__.py   dm.incrementalsearch(Download)
from inspect import getmro
 
from BTrees.OOBTree import OOBTree, OOBucket, OOSet, OOTreeSet
from BTrees.IOBTree import IOBTree, IOBucket, IOSet, IOTreeSet
from BTrees.OIBTree import OIBTree, OIBucket, OISet, OITreeSet
  type(LLBucket()) : (0, 0, LONG,),
  type(LFBucket()) : (0, 0, LONG,),
  type(OOTreeSet()) : (30, 250, OBJECT,),
  type(IITreeSet()) : (30, 250, INT,),
  type(LLTreeSet()) : (30, 250, LONG,),

  1 | 2 | 3 | 4  Next