[Zope] convert dtml doc to dtml method

Bill Anderson bill@libc.org
09 Mar 2001 12:12:06 -0700


On 09 Mar 2001 09:32:30 +0000, Chris Withers wrote:
> Donald Braman wrote:
> > 
> > Because I'm newish to Zope, I still find myself converting dtml docs and
> > methods back and forth as I realize what I'm doing with each object. Is
> > there a simple way to do this (other than creating a new object, then
> > copying the contents of the old one, then deleting the old, then renaming
> > the new one?) -Don
> 
> You could write a Python Script to let you do it more easily :-)



Here is how I used to convert them (still manual, but better that the
copy-past stuff):

o Open the edit screen for the DTML Document  in a new browser window
(as if you were editing it).
o delete the method in the original window
o create a DTML Method with the new name.
o Click on change in the second window (the editing one)
o *Poof* Now your doc is a method

 A python script would be cool though too. :)


Bill