convert dtml doc to dtml method
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
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 :-) cheers, Chris
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
I'm on page 21 of Learning Python. Hopefully I'll be able to do it soon! -Don -----Original Message----- From: Chris Withers [mailto:chrisw@nipltd.com] Sent: Friday, March 09, 2001 4:33 AM To: donald.braman@yale.edu Cc: zope@zope.org Subject: Re: [Zope] convert dtml doc to dtml method 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 :-) cheers, Chris
participants (3)
-
Bill Anderson -
Chris Withers -
Donald Braman