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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
__setstate__(state)

Set the state of the BTree.

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/athistoryaware.py   Products.Archetypes(Download)
            # transaction machinery
            tempbtree = OOBTree()
            tempbtree.__setstate__(anns.__getstate__())
 
            # Find annotation revisions and insert

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/athistoryaware.py   Products.Archetypes(Download)
            # transaction machinery
            tempbtree = OOBTree()
            tempbtree.__setstate__(anns.__getstate__())
 
            # Find annotation revisions and insert

src/z/o/zodbbrowser-0.11.0/src/zodbbrowser/btreesupport.py   zodbbrowser(Download)
    def __init__(self, type, state, tid):
        self.btree = OOBTree()
        self.btree.__setstate__(state)
        self.state = state
        # Large btrees have more than one bucket; we have to load old states

src/z/t/ztfy.base-0.1.2/src/ztfy/base/zodb.py   ztfy.base(Download)
        old_order_state = IObjectHistory(container._order).loadState(self.tid)
        container._data = OOBTree()
        container._data.__setstate__(old_data_state)
        container._order = PersistentList()
        container._order.__setstate__(old_order_state)