Re: [ZODB-Dev] _p_invalidate
On Mon, Jun 21, 2010 at 6:00 AM, Nitro wrote: > Am 21.06.2010, 11:55 Uhr, schrieb Nitro : > >> Hello, >> >> The simple code below gives me a POSKeyError. Is this to be expected? No. > > Searched the bugtracker, it looks pretty much like this issue: > > https://bugs.launchpad.net/zodb/+bug/143560 > https://mail.zope.org/pipermail/zodb-dev/2005-November/009419.html Somewhat. I just committed fixes for both to the trunk (3.10.0b7). Jim -- Jim Fulton ___ 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
Re: [ZODB-Dev] _p_invalidate
Am 21.06.2010, 11:55 Uhr, schrieb Nitro : > Hello, > > The simple code below gives me a POSKeyError. Is this to be expected? Searched the bugtracker, it looks pretty much like this issue: https://bugs.launchpad.net/zodb/+bug/143560 https://mail.zope.org/pipermail/zodb-dev/2005-November/009419.html -Matthias ___ 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
[ZODB-Dev] _p_invalidate
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