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 thoses objects and doing
ob.__class__ = OrderedFolder
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 finding
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
Sidnei da Silva wrote:
You need something like this:
http://cvs.zope.org/Products/ZopeOrg-NV/Extensions/change_modules.py?rev=1.2cvsroot=Zope.orgcontent-type=text/vnd.viewcvs-markup
Thanks, I see there is indeed some deep voodoo involved...
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
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 thoses