[ZODB-Dev] Class Versioning

2006-07-14 Thread Chris S
I'm trying to detect a disparity between an instance __version__ and a class __version__, signifying a class upgrade. However, I'm not sure why the following code doesn't work. class Foo(Persistent): __version__ = 1.0 def __setstate__(self, state): Persistent.__setstate__( self,

Re: [ZODB-Dev] Class Versioning?

2005-10-29 Thread Victor Safronovich
Hello Chris Spencer, Saturday, October 29, 2005, 7:16:43 AM, you wrote: CS Would it be possible to support some system of class versioning in ZODB, CS to aid to handling modifications to source code? For instance, suppose CS each class definition has a __version__ attribute. Upon

Re: [ZODB-Dev] Class Versioning?

2005-10-29 Thread Jim Fulton
Lennart Regebro wrote: On 10/29/05, Chris Spencer [EMAIL PROTECTED] wrote: Would it be possible to support some system of class versioning in ZODB, to aid to handling modifications to source code? For instance, suppose each class definition has a __version__ attribute. Upon serialization, this