[Zope] Inserting multiple files.

Oleg Broytmann Oleg Broytmann <phd@phd.fep.ru>
Mon, 4 Jun 2001 19:25:04 +0400 (MSD)


On Mon, 4 Jun 2001, After Dark wrote:
> I was thinking in a way to insert my files through FTP with
> the meta_type that I want. Then I tought: Why not change it
> after insert it??

   There is no way. ZODB stores pickles of REAL classess. So to change the
type of object one needs:

1. Get data from current object.
2. Create another object of different class.
3. Put data into the new object (and store it back to ZODB).

Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.