[Zope-dev] Patching object class

2003-06-20 Thread Florent Guillaume
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

Re: [Zope-dev] Patching object class

2003-06-20 Thread Paul Winkler
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

Re: [Zope-dev] Patching object class

2003-06-20 Thread Sidnei da Silva
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

Re: [Zope-dev] Patching object class

2003-06-20 Thread Florent Guillaume
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)

Re: [Zope-dev] Patching object class

2003-06-20 Thread Dieter Maurer
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