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

All Samples(980)  |  Call(591)  |  Derive(20)  |  Import(369)

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
if __name__=='__main__':
    c = Container()
    rd = OOBTree({1:None,2:None})
    good_record = OOBTree({1:'1',2:'2'})
    bad_record = OOBTree({1:'1'})

src/e/r/erp5-HEAD/product/ERP5Type/patches/BTreeFolder2.py   erp5(Download)
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2Base
from Acquisition import aq_base
from BTrees.OOBTree import OOBTree
from BTrees.OIBTree import OIBTree, union
from BTrees.Length import Length
            error=sys.exc_info())
        try:
            self._tree = OOBTree(self._tree)
            mt_index = OOBTree()
            for id, object in self._tree.items():
                  ids[id] = 1
            #LOG('Added All Object in BTree mti',0, map(lambda x:str(x), mt_index.keys()))
            self._mt_index = OOBTree(mt_index)
        except:
            LOG('BTreeFolder2', ERROR, 'Failed to fix %s.' % path,

src/p/r/Products.listen-0.6.4/Products/listen/browser/import_export.py   Products.listen(Download)
from AccessControl import Unauthorized
from BTrees.OOBTree import OOBTree
from Products.CMFCore.utils import getToolByName
from Products.Five import BrowserView
from Products.listen.config import PROJECTNAME
    def save_import_history(self):
        annot = IAnnotations(self.context)
        listen_annot = annot.get(PROJECTNAME)
        if listen_annot is None:
            annot[PROJECTNAME] = listen_annot = OOBTree()
        import_annot = listen_annot.get('import')
        if import_annot is None:
            listen_annot['import'] = import_annot = OOBTree()
        data = dict(msgids=self.msgids,
                    filename=self.filename)
        import_annot[now] = OOBTree(data)
 
    def import_history(self):

src/o/p/opencore-listen-0.8.0/Products/listen/browser/import_export.py   opencore-listen(Download)
from AccessControl import Unauthorized
from BTrees.OOBTree import OOBTree
from Products.CMFCore.utils import getToolByName
from Products.Five import BrowserView
from Products.listen.config import PROJECTNAME
    def save_import_history(self):
        annot = IAnnotations(self.context)
        listen_annot = annot.get(PROJECTNAME)
        if listen_annot is None:
            annot[PROJECTNAME] = listen_annot = OOBTree()
        import_annot = listen_annot.get('import')
        if import_annot is None:
            listen_annot['import'] = import_annot = OOBTree()
        data = dict(msgids=self.msgids,
                    filename=self.filename)
        import_annot[now] = OOBTree(data)
 
    def import_history(self):

src/z/o/ZODB-4.0.0/src/ZODB/fsIndex.py   ZODB(Download)
 
from BTrees.fsBTree import fsBucket
from BTrees.OOBTree import OOBTree
import six
 
    def __init__(self, data=None):
        self._data = OOBTree()
        if data:
            self.update(data)
 
    def _setstate_0(self, state):
        self.__dict__.clear()
        self.__dict__.update(state)
        self._data = OOBTree([
            (ensure_bytes(k), v)
            for (k, v) in self._data.items()
            ])
 
    def _setstate_1(self, state):
        self._data = OOBTree([

src/w/s/wsgioauth.zodb-0.2/wsgioauth/zodb/__init__.py   wsgioauth.zodb(Download)
# -*- coding: utf-8 -*-
from BTrees.OOBTree import OOBTree
from persistent import Persistent
from wsgioauth.mock import Storage
from wsgioauth.provider import (
    if not root_id in zodb_root:
        data = {
            'consumers': OOBTree(),
            'request_tokens': OOBTree(),
            'access_tokens': OOBTree(),
            }
        oauth_root = OOBTree(data)

src/z/o/ZODB-HEAD/src/ZODB/fsIndex.py   ZODB(Download)
 
from BTrees.fsBTree import fsBucket
from BTrees.OOBTree import OOBTree
import six
 
    def __init__(self, data=None):
        self._data = OOBTree()
        if data:
            self.update(data)
 
    def _setstate_0(self, state):
        self.__dict__.clear()
        self.__dict__.update(state)
        self._data = OOBTree([
            (ensure_bytes(k), v)
            for (k, v) in self._data.items()
            ])
 
    def _setstate_1(self, state):
        self._data = OOBTree([

src/e/r/erp5-HEAD/product/ERP5/Tool/PasswordTool.py   erp5(Download)
from Products.ERP5Type.Message import translateString
from Products.ERP5Type.Globals import PersistentMapping
from BTrees.OOBTree import OOBTree
from urllib import urlencode
 
  def __init__(self, id=None):
    super(PasswordTool, self).__init__(id)
    self._password_request_dict = OOBTree()
 
  security.declareProtected('Manage users', 'getResetPasswordKey')
      LOG('ERP5.PasswordTool', INFO, 'Migrating password_request_dict to'
                                     ' OOBTree')
      self._password_request_dict = OOBTree(self._password_request_dict)
 
    # register request

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/p/r/Products.BTreeFolder2-2.13.4/src/Products/BTreeFolder2/BTreeFolder2.py   Products.BTreeFolder2(Download)
from BTrees.OIBTree import OIBTree
from BTrees.OIBTree import union
from BTrees.OOBTree import OOBTree
from OFS.event import ObjectWillBeAddedEvent
from OFS.event import ObjectWillBeRemovedEvent
    def _initBTrees(self):
        self._tree = OOBTree()
        self._count = Length()
        self._mt_index = OOBTree()
 
                     exc_info=sys.exc_info())
            try:
                self._tree = OOBTree(self._tree)
                mt_index = OOBTree()
                for key, value in self._mt_index.items():

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next