def __init__(self, id, title=""): # XXX: This depends on implementation detail in OrderedContainer, # but it uses a PersistentDict, which sucks :-/ OrderedContainer.__init__(self) self.id = id self.title = title or id self._data = OOBTree()
def setUp(self): setup.placelessSetUp() provideAdapter(ZodbObjectHistory) RealDatabaseTest.setUp(self) self.container = self.conn.root()['container'] = OrderedContainer() self.container['foo'] = 1 self.container['bar'] = 2 transaction.commit() self.tid = self.container._p_serial self.state = OrderedContainerState(self.container, self.container.__getstate__(), self.tid)
def __init__(self): OrderedContainer.__init__(self) self._data=OOBTree()
def __init__(self): Superclass.__init__(self) OrderedContainer.__init__(self) self.ikRevision = __version__