[Zope] Changing meta-types of a series of objects

Dieter Maurer dieter@handshake.de
Sat, 2 Mar 2002 16:24:06 +0100


J. Joy writes:
 > Does anyone know how to change the metatype of an object that already exists?
 > 
 > I am trying to FTP some files into a Zope directory, but annoyingly they identify themselves as
 > DTML documents, but I need them to be DTML Methods so that the DTML in the pages is useful...
Look at "PUT_factory"s.

It would not be sufficient to change the "meta_type". Objects belong to classes
that define their methods. Changing the class at runtime requires
(in general) recreation of the object.


Dieter