Hello,

The simple code below gives me a POSKeyError. Is this to be expected?

-Matthias


class MyObj(Persistent):
     def __init__(self, settings):
         Persistent.__init__(self)
         self.settings = settings

     def _p_invalidate(self):
         print 'INVALIDATE', self.settings
         Persistent._p_invalidate(self)
         print self.settings   # POSKeyError here

transaction.begin()
dbroot['obj'] = obj = MyObj( {'a' : 1} )
sp = transaction.savepoint()
transaction.abort()
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to