[Zope] quick conversion from dtml-document to method
Mike Doanh Tran
mtran@shufflemasterrd.com
Fri, 10 Jan 2003 13:11:44 -0700
Thanks,
This works great. I have to take out the "%original_id" from the return
statement. Not define error.
Mike
return 'Done %s is now a DTML Document' % original_id
On Friday 10 January 2003 11:49 am, you wrote:
> > I have a few dtml-documents that should have been dtml-methods. (rookie
> > error, made before read Zope book). Does anyone know a quick way to
> > convert these docs to methods?
>
> This is an old script I had lying around. Swap mention of method to
> document and vice versa and you're done. You will potentially lose
> information on the conversion for things such as security or properties.
>
> http://www.zope.org/Members/andym/method_to_document
--
Mike Doanh Tran
Shuffle Master Inc.
Website: http://internal.shufflemasterrd.com/