[ZODB-Dev] Changing Baseclass

Thomas Guettler hv at tbz-pariv.de
Thu Nov 27 07:12:37 EST 2003


Hi!

I changed the baseclass of an object. I added Persistent
to the list of baseclasses.

When I unpickle the object (which was stored before the
change) I get:

 __init__() takes exactly 2 arguments (1 given)

If I build a new application, without unpickling the
old objects everything works fine.

This time it was no problem, since was no important data
in the database. But it would be nice to know how to handle
this if the database contains important data.

 thomas










More information about the ZODB-Dev mailing list