[Zope] How to read raw data from HTMLFile?

Kevin Howe support@performance-net.com
Wed, 9 Aug 2000 19:49:31 -0300


I would like to pre-process a DTML file (accessed using HTMLFile) before
displaying it in the web browser.

Example Code:

  dtml=HTMLFile('manage/mycode', globals())

  def cleanUp:
     # eliminate blank lines and <!-- comments--> from DTML
     .....

  def printDTML(self):
     return self.cleanUp(dtml)

The problem is that the dtml variable doesn't return the DTML,  but the
object reference. Is there a way to fetch the raw DTML content from the
HTMLFile object?

Kevin Howe