[Zope] How to render a HTMLFile in a method in a product

Chris Withers chrisw@nipltd.com
Thu, 26 Oct 2000 14:25:52 +0100


Max Møller Rasmussen wrote:
> def test(self):
>     "A simpe test method"
>     return  HTMLFile('skins/' + self.skin, globals())

This is the closest. try the following:


testisDocTemp = 1

def test(self,ignored,md):
    " A simple test method "
    return HTMLFile('skins/' + self.skin, globals())(None,md)

cheers,

Chris