Re: Objects with varying classes
Christopher Lozinski <[email protected]> Wed, 26 Sep 2018 14:59:49 +0200
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <[email protected]> |
Here is my two cents. I recently looked at teh set state methods in class persistent. They have the database id of the object, and the database of the object. So to change the class of the object, you have to set item._p_changed = True for all of the objects that refer to the the object on which you changed the class. You only saved the object, not the reference to it, so there was trouble. At least that is my guess. As for BTrees, if they get changed, then the buckets get saved. Otherwise they would not work. Hope that helps. Chris -- You received this message because you are subscribed to the Google Groups "zodb" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.