Re: [ZODB-Dev] Migrating classes in ZODB 3.5.1

2005-11-09 Thread Syver Enstad
Dieter Maurer wrote: Syver Enstad wrote at 2005-11-7 11:51 +0100: In ZODB 3.2 I can replace the _classFactory method on DB and locate the renamed/moved class by other means (a lookup table that maps old module classname pairs to another class in another module). If I change attributes of

RE: [ZODB-Dev] misleading exception

2005-11-09 Thread dvd
On Sun, 2005-11-06 at 18:48 -0500, Tim Peters wrote: [dvd] Hi all, I'm still working with savepoints and today I spend about tewo hours to find an error, misleaded by a strange Exception As Dieter said (thanks, Dieter!), the current transaction should always be explicitly committed or

RE: [ZODB-Dev] Migrating classes in ZODB 3.5.1

2005-11-09 Thread Tim Peters
[David Binger] Is there something to prevent your update script from setting _p_changed = 1 on every persistent object that contains a reference to an instance of the moved class? I think that if you do that and commit and pack the database, the old module/class references will be purged. If

Re: [ZODB-Dev] Migrating classes in ZODB 3.5.1

2005-11-09 Thread David Binger
On Nov 9, 2005, at 10:37 AM, Jeremy Hylton wrote: How do you find all the references? It seems like you would need to execute a transaction that iterated over every object in the storage and searched the pickle for references to the class. You do need to do this to find the references