2 Mar
2002
2 Mar
'02
3:24 p.m.
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