Florent Guillaume wrote at 2003-6-20 16:56 +0200:
> I have the need to "update" some persistent objects in a ZODB to change
> their class.
>
> One use case comparable to the one I have would be to change all objects
> of type Folder to OrderedFolder.
> To do that, I envisionned finding all
Sidnei da Silva wrote:
You need something like this:
http://cvs.zope.org/Products/ZopeOrg-NV/Extensions/change_modules.py?rev=1.2&cvsroot=Zope.org&content-type=text/vnd.viewcvs-markup
Thanks, I see there is indeed some deep voodoo involved...
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+
Paul Winkler wrote:
To do that, I envisionned finding all thoses objects and doing
ob.__class__ = OrderedFolder
ob._p_changed = 1
Would this work ?
See the thread "Renaming a product" just a few days ago.
The conclusion was that this would not work.
Ok, but I'm curious about the deeper reason. W
On Fri, Jun 20, 2003 at 04:56:26PM +0200, Florent Guillaume wrote:
| I have the need to "update" some persistent objects in a ZODB to change
| their class.
|
| One use case comparable to the one I have would be to change all objects
| of type Folder to OrderedFolder.
| To do that, I envisionned
On Fri, Jun 20, 2003 at 04:56:26PM +0200, Florent Guillaume wrote:
> I have the need to "update" some persistent objects in a ZODB to change
> their class.
>
> One use case comparable to the one I have would be to change all objects
> of type Folder to OrderedFolder.
> To do that, I envisionned