[Zope] HOWTO: Changing from DTML Document to Method and back.

Andreas Kostyrka andreas@mtg.co.at
Mon, 23 Aug 1999 22:06:01 +0200 (CEST)


Hi!

This is only intended as a tip, because it might not have occured to all
ZOPE developers yet.

Sometimes, one wants to change a DTML method into a document or the other
way. ZOPE doesn't support this (it doesn't fit to well into it's object
model), but you can do this quite nicely with some browser help ;)

My way of doing this is:
1.) Open the orginal object manage_edit in a new window. In netscape,
    just click the middle button on the item in Folder management view.
2.) Leave the new window alone for the moment an minimize it.
3.) In your folder management view, delete your original.
4.) Add the new object, be it method or document.
5.) Unminize the window created in step 1 and click on "Change". Close the
    window.

Voila, you've changed the type of your entity without much fuzz.

Andreas
--
Andreas Kostyrka                     | andreas@mtg.co.at
phone: +43/1/7070750                 | phone: +43/676/4091256   
MTG Handelsges.m.b.H.                | fax:   +43/1/7065299
Raiffeisenstr. 16/9                  | 2320 Zwoelfaxing AUSTRIA