Re: [ZODB-Dev] Weird errors with Zope 2.7.7

2005-10-19 Thread Chris Withers
Hi Tim, Tim Peters wrote: As before, this Shouldn't load state ... error is almost certainly due to a logic error in some product you're using, or in Zope. Take this message as meaning exactly what it says: something is trying to work with a persistent object after the Connection it came from

Re: Re[2]: [ZODB-Dev] know the state of an object

2005-10-19 Thread Dieter Maurer
Victor Safronovich wrote at 2005-10-18 13:18 +0600: ... May be usefull to add some simple workflow to Persistent class with states: GHOST UPTODATE CHANGED STICKY transitions: Most of the transitions are there (though through strange names) activate --

Re: [ZODB-Dev] Weird errors with Zope 2.7.7

2005-10-19 Thread Dieter Maurer
Chris Withers wrote at 2005-10-19 13:53 +0100: ... from binascii import unhexlify def oid_unrepr(oidr): if oidr.startswith('0x'): oidr = oidr[2:] h = unhexlify(oidr) return '\x00'*(8-len(h))+h def oidr2obj(app,oidr): return app._p_jar[oid_unrepr(oidr)] First