quick conversion from dtml-document to method
Hi, 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? My problem is Zcatalog indexed them as documents. So when users do a search and try to access it, they get a Zope error. Most of these dtml-documents that should have been dtml-methods, required variables to passing to them for them to work. Thanks in advance for any suggestion -- Mike
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 -- Andy McKay
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.
-- Mike Doanh Tran Shuffle Master Inc. Website: http://internal.shufflemasterrd.com/
Mike Doanh Tran wrote:
This works great. I have to take out the "%original_id" from the return statement. Not define error.
Oh thanks, as soon as I posted it I looked at and said, why am I doing that? and changed it. Silly really ;) -- Andy McKay
participants (2)
-
Andy McKay -
Mike Doanh Tran