[Zope] DTML string in Zope Product

Max M maxm@mxm.dk
Wed, 09 Oct 2002 15:46:44 +0200


Bo M. Maryniuck wrote:

> Somebody know how to do instead:
> 
> someFoo = DTMLFile('file', globals())
> 
> def someFoo(self, REQUEST = None):
> 	"""abc"""
> 	myDTML = "<standard_html_header>Test!<standard_html_footer>"
> 	return myDTML



Easy if you know how...

######

from Globals import HTML

class SomeClass:

     someFoo = HTML('<standard_html_header>Test!<standard_html_footer>')

#####

Zope will call it and pass parameters ...

regards Max M

 ><evolve>
   >    >