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()
Exemple #2
0
 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)
Exemple #3
0
 def __init__(self):
     OrderedContainer.__init__(self)
     self._data=OOBTree()
Exemple #4
0
 def __init__(self):
     Superclass.__init__(self)
     OrderedContainer.__init__(self)
     self.ikRevision = __version__